mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-13 14:13:05 -06:00
Tune config.toml, strip and optimize binary size
This commit is contained in:
11
.cargo/config.toml
Normal file
11
.cargo/config.toml
Normal 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
|
||||||
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
@@ -54,7 +54,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install ${{ matrix.linker }}
|
sudo apt-get install ${{ matrix.linker }}
|
||||||
cat .cargo/config.github >> .cargo/config
|
cat .cargo/config.github.toml >> .cargo/config.toml
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose --release --target ${{ matrix.target }}
|
run: cargo build --verbose --release --target ${{ matrix.target }}
|
||||||
|
|||||||
Reference in New Issue
Block a user