commit
1484daee9a
@ -1,2 +1,7 @@
|
|||||||
[build]
|
[build]
|
||||||
target = "x86_64-unknown-linux-musl"
|
target = "x86_64-unknown-linux-musl"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
panic = "abort"
|
||||||
|
codegen-units = 1
|
||||||
|
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@ -23,8 +23,10 @@ jobs:
|
|||||||
run: rustup target install x86_64-unknown-linux-musl
|
run: rustup target install x86_64-unknown-linux-musl
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
- name: Install binary compressor
|
||||||
|
run: sudo apt-get update && sudo apt-get install upx-ucl
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --release --verbose --target=x86_64-unknown-linux-musl
|
run: cargo build --release --verbose --target=x86_64-unknown-linux-musl && strip ./target/x86_64-unknown-linux-musl/release/amdfand && upx --best --lzma target/x86_64-unknown-linux-musl/release/amdfand
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2.2.4
|
uses: actions/upload-artifact@v2.2.4
|
||||||
with:
|
with:
|
||||||
|
5
build.sh
Executable file
5
build.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
cargo build --release
|
||||||
|
strip target/x86_64-unknown-linux-musl/release/amdfand
|
||||||
|
upx --best --lzma target/x86_64-unknown-linux-musl/release/amdfand
|
Loading…
Reference in New Issue
Block a user