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 6dc6392
Showing 1 changed file with 6 additions and 0 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

0 comments on commit 6dc6392

Please sign in to comment.