Skip to content

Commit 3c5ee22

Browse files
committed
release: Add a dist profile with lto
1 parent 77fbfd6 commit 3c5ee22

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- name: Create archive
2727
run: |
2828
for target in $TARGETS; do
29-
cargo build --release --locked --target $target
29+
cargo build --profile dist --locked --target $target
3030
3131
file=uhyve-$target.tar.gz
32-
tar czf $file -C target/$target/release uhyve -C $GITHUB_WORKSPACE README.md LICENSE-APACHE LICENSE-MIT
32+
tar czf $file -C target/$target/dist uhyve -C $GITHUB_WORKSPACE README.md LICENSE-APACHE LICENSE-MIT
3333
gh release upload ${{ github.ref }} $file
3434
done

‎Cargo.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,8 @@ criterion = "0.8"
100100
home = "0.5"
101101
regex = { version = "1.12.3", default-features = false, features = ["unicode-perl"] }
102102
uhyve-interface = { version = "0.3.0", path = "uhyve-interface", features = ["std"] }
103+
104+
[profile.dist]
105+
inherits = "release"
106+
lto = "fat"
107+
codegen-units = 1

0 commit comments

Comments
 (0)