Skip to content

Commit

Permalink
ci(release): switch to performance profile in CI build
Browse files Browse the repository at this point in the history
Updated the Cargo.toml to add optimization level `z`
for the performance profile. Modified release.yml to
use the performance profile for building binaries.
  • Loading branch information
steebchen committed Nov 1, 2024
1 parent 712422f commit 9fa2805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV
- name: Build binaries
run: cargo build --release --bins --target ${{ matrix.job.target }}
run: cargo build --profile performance --bins --target ${{ matrix.job.target }}

- name: Archive binaries
id: artifacts
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ version = "1.0.0-rc.0"

[profile.performance]
codegen-units = 1
opt-level = "z"
incremental = false
inherits = "release"
lto = "fat"
Expand Down

0 comments on commit 9fa2805

Please sign in to comment.