Skip to content

Commit

Permalink
Add new lto-thin profile that is used exclusively for macos arm64 rel…
Browse files Browse the repository at this point in the history
…ease build
  • Loading branch information
g-bauer committed May 23, 2024
1 parent 0dd101c commit 843739c
Show file tree
Hide file tree
Showing 2 changed files with 6 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 @@ -54,7 +54,7 @@ jobs:
uses: PyO3/maturin-action@v1
with:
target: aarch64
args: --profile release-lto --out dist
args: --profile release-lto-thin --out dist
- name: Upload wheels
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ inherits = "release"
lto = true
codegen-units = 1

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


[features]
default = []
Expand Down

0 comments on commit 843739c

Please sign in to comment.