Skip to content

Commit dd9da1a

Browse files
committed
correct strip binary command
1 parent 72d4463 commit dd9da1a

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/rust-publish.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,20 @@ jobs:
120120
if: runner.os != 'Windows'
121121
run: |
122122
if [ "${{ matrix.target }}" != "aarch64-apple-darwin" ]; then
123-
if [ -n "${{ matrix.linker }}" ]; then
124-
${{ matrix.target }}-strip target/${{ matrix.target }}/release/bping
125-
else
126-
strip target/${{ matrix.target }}/release/bping
127-
fi
123+
case "${{ matrix.target }}" in
124+
"aarch64-unknown-linux-gnu")
125+
aarch64-linux-gnu-strip target/${{ matrix.target }}/release/bping
126+
;;
127+
"arm-unknown-linux-gnueabi")
128+
arm-linux-gnueabi-strip target/${{ matrix.target }}/release/bping
129+
;;
130+
"armv7-unknown-linux-gnueabihf")
131+
arm-linux-gnueabihf-strip target/${{ matrix.target }}/release/bping
132+
;;
133+
*)
134+
strip target/${{ matrix.target }}/release/bping
135+
;;
136+
esac
128137
fi
129138
130139
- name: Upload binaries to release

0 commit comments

Comments
 (0)