Skip to content

Commit

Permalink
Static link musl
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Sep 6, 2023
1 parent 6a77ba8 commit 65afd90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 88 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,15 @@ jobs:
run: echo "BUILD_CMD=cross" >> $GITHUB_ENV

- name: Do release build
if: matrix.target != "x86_64-unknown-linux-musl"
shell: bash
run: $BUILD_CMD build --release --target ${{ matrix.target }}

- name: Do release build (musl)
if: matrix.target == "x86_64-unknown-linux-musl"
shell: bash
run: RUSTFLAGS='-C link-arg=-s' $BUILD_CMD build --release --target ${{ matrix.target }}

- name: Move binary to root of checkout
shell: bash
run: mv target/${{ matrix.target }}/release/difft difft
Expand Down
88 changes: 0 additions & 88 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 65afd90

Please sign in to comment.