Skip to content

Commit

Permalink
Skip strip arm musl binary
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Aug 19, 2024
1 parent f172a2f commit d72b8f6
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
publish:

name: Publishing for ${{ matrix.os }}
name: Publishing for ${{ matrix.target }}
runs-on: ${{ matrix.os }}

strategy:
Expand Down Expand Up @@ -86,9 +86,7 @@ jobs:
- name: install strip command
shell: bash
run: |
if [[ ${{ matrix.target }} == aarch64-unknown-linux-gnu ]]; then
sudo apt update
sudo apt-get install -y binutils-aarch64-linux-gnu
fi
Expand All @@ -103,12 +101,14 @@ jobs:
BINARY_NAME=${{ matrix.binary-name }}${{ matrix.binary-postfix }}
if [[ ${{ matrix.target }} == aarch64-unknown-linux-gnu ]]; then
GCC_PREFIX="aarch64-linux-gnu-"
else
GCC_PREFIX=""
fi
"$GCC_PREFIX"strip $BINARY_NAME
if [[ ${{ matrix.target }} != aarch64-unknown-linux-musl ]]; then
"$GCC_PREFIX"strip $BINARY_NAME
fi
########## create tar.gz ##########
Expand Down Expand Up @@ -136,4 +136,3 @@ jobs:

GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit d72b8f6

Please sign in to comment.