Skip to content

Commit 883d465

Browse files
author
wangchunyan.bolt
committed
为 aarch64 添加交叉编译 strip
1 parent 2998b57 commit 883d465

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ jobs:
6666

6767
- name: Strip binary (Linux/macOS)
6868
if: matrix.os != 'windows-latest'
69-
run: strip target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
69+
run: |
70+
if [ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]; then
71+
aarch64-linux-gnu-strip target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
72+
else
73+
strip target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
74+
fi
7075
7176
- name: Create tarball (Linux/macOS)
7277
if: matrix.os != 'windows-latest'

0 commit comments

Comments
 (0)