Skip to content

Commit

Permalink
Enable LTO on the CD
Browse files Browse the repository at this point in the history
  • Loading branch information
sorairolake committed Dec 3, 2023
1 parent b25ae7f commit 28e85a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
permissions:
contents: write

env:
CARGO_PROFILE_RELEASE_LTO: true

jobs:
build:
name: Build
Expand Down
4 changes: 4 additions & 0 deletions crates/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ encrypt and decrypt files using the [abcrypt format].
cargo install abcrypt-cli
```

If you want to enable optimizations such as LTO, set them using [environment
variables].

### From binaries

The [release page] contains pre-built binaries for Linux, macOS and Windows.
Expand Down Expand Up @@ -101,6 +104,7 @@ licensing information.
[version-url]: https://crates.io/crates/abcrypt-cli
[license-badge]: https://img.shields.io/crates/l/abcrypt-cli?style=for-the-badge
[abcrypt format]: ../../docs/FORMAT.adoc
[environment variables]: https://doc.rust-lang.org/cargo/reference/environment-variables.html#configuration-environment-variables
[release page]: https://github.com/sorairolake/abcrypt/releases
[BUILD.adoc]: BUILD.adoc
[`abcrypt(1)`]: https://sorairolake.github.io/abcrypt/book/cli/man/man1/abcrypt.1.html
Expand Down

0 comments on commit 28e85a1

Please sign in to comment.