Skip to content

Commit

Permalink
update fake bin to build with release-lto profile
Browse files Browse the repository at this point in the history
  • Loading branch information
cksac committed Jan 7, 2025
1 parent e34bb49 commit 36583f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --bin fake --features cli
args: --release --profile release-lto --bin fake --features cli
# TODO: Support generating for multiple targets.
# https://stackoverflow.com/questions/73498168/github-actions-merge-artifacts-after-matrix-steps
- name: Archive Binary
Expand Down
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ members = [

resolver = "2"

[profile.release]
[profile.release-lto]
inherits = "release"
codegen-units = 1
lto = true

0 comments on commit 36583f5

Please sign in to comment.