Skip to content

Commit

Permalink
correct strip binary command
Browse files Browse the repository at this point in the history
  • Loading branch information
Firaenix committed Nov 18, 2024
1 parent 72d4463 commit dd9da1a
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/rust-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,20 @@ jobs:
if: runner.os != 'Windows'
run: |
if [ "${{ matrix.target }}" != "aarch64-apple-darwin" ]; then
if [ -n "${{ matrix.linker }}" ]; then
${{ matrix.target }}-strip target/${{ matrix.target }}/release/bping
else
strip target/${{ matrix.target }}/release/bping
fi
case "${{ matrix.target }}" in
"aarch64-unknown-linux-gnu")
aarch64-linux-gnu-strip target/${{ matrix.target }}/release/bping
;;
"arm-unknown-linux-gnueabi")
arm-linux-gnueabi-strip target/${{ matrix.target }}/release/bping
;;
"armv7-unknown-linux-gnueabihf")
arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/bping
;;
*)
strip target/${{ matrix.target }}/release/bping
;;
esac
fi
- name: Upload binaries to release
Expand Down

0 comments on commit dd9da1a

Please sign in to comment.