Skip to content

Commit 7f7d801

Browse files
committed
fix: use correct strip command for ARM64 Linux builds
- Skip stripping for aarch64-unknown-linux-gnu in the generic strip step - Add dedicated step using aarch64-linux-gnu-strip for ARM64 Linux binaries - This fixes the build failure when trying to strip cross-compiled binaries
1 parent 08b3e09 commit 7f7d801

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
run: cargo build --release --target ${{ matrix.target }}
128128

129129
- name: Strip binary (Linux and macOS)
130-
if: matrix.os != 'windows-latest' && matrix.target != 'aarch64-apple-darwin'
130+
if: matrix.os != 'windows-latest' && matrix.target != 'aarch64-apple-darwin' && matrix.target != 'aarch64-unknown-linux-gnu'
131131
run: |
132132
strip target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
133133
@@ -137,6 +137,12 @@ jobs:
137137
# Skip stripping for cross-compiled ARM64 binary or use lipo if needed
138138
echo "Skipping strip for cross-compiled ARM64 binary"
139139
140+
- name: Strip binary (Linux ARM64)
141+
if: matrix.target == 'aarch64-unknown-linux-gnu'
142+
run: |
143+
# Use aarch64 strip for cross-compiled binary
144+
aarch64-linux-gnu-strip target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
145+
140146
- name: Create checksum (Unix)
141147
if: matrix.os != 'windows-latest'
142148
run: |

0 commit comments

Comments
 (0)