Tune config.toml, strip and optimize binary size

This commit is contained in:
2024-10-01 17:42:05 -05:00
parent 1b8d85e129
commit 5d394634e5
3 changed files with 12 additions and 1 deletions

11
.cargo/config.toml Normal file
View File

@@ -0,0 +1,11 @@
[target.x86_64-unknown-linux-musl]
runner = "musl-gcc"
# [target.aarch64-unknown-linux-musl]
# linker = "aarch64-linux-gnu-gcc"
[profile.release]
opt-level = "z"
strip = true
lto = true
codegen-units = 1

View File

@@ -54,7 +54,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install ${{ matrix.linker }}
cat .cargo/config.github >> .cargo/config
cat .cargo/config.github.toml >> .cargo/config.toml
- name: Build
run: cargo build --verbose --release --target ${{ matrix.target }}