Skip to content

Commit a579e5d

Browse files
committed
fix: switch to musl toolchain for Linux binaries
1 parent c78b894 commit a579e5d

3 files changed

Lines changed: 414 additions & 125 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,15 @@ jobs:
3737
with:
3838
profile: minimal
3939
toolchain: stable
40-
target: x86_64-unknown-linux-gnu
41-
- run: cargo build --release --target x86_64-unknown-linux-gnu
42-
env:
43-
RUSTFLAGS: "-C target-feature=+crt-static"
40+
target: x86_64-unknown-linux-musl
41+
- run: apt-get install musl-tools
42+
- run: cargo build --release --target x86_64-unknown-linux-musl
4443
- run: |
45-
cd target/x86_64-unknown-linux-gnu/release/
44+
cd target/x86_64-unknown-linux-musl/release/
4645
tar -cJvf sacad_${{ github.ref_name }}_linux_amd64.tar.xz sacad sacad_r
4746
- uses: softprops/action-gh-release@v1
4847
with:
49-
files: target/x86_64-unknown-linux-gnu/release/sacad*.tar.xz
48+
files: target/x86_64-unknown-linux-musl/release/sacad*.tar.xz
5049
token: ${{ secrets.GITHUB_TOKEN }}
5150

5251
bin-windows-amd64-release:

0 commit comments

Comments
 (0)