Skip to content

Commit e8546af

Browse files
vrogojinclaude
andcommitted
Strip debug symbols from release binaries to reduce package sizes
Linux and Windows packages were 176 MB and 194 MB respectively due to unstripped debug symbols. Uses strip for Linux/macOS and x86_64-w64-mingw32-strip for Windows cross-compiled binaries. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5c30f58 commit e8546af

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
cp depends/x86_64-pc-linux-gnu/bin/alpha-tx "${ARTIFACT_NAME}/bin/"
7373
cp depends/x86_64-pc-linux-gnu/bin/alpha-wallet "${ARTIFACT_NAME}/bin/"
7474
cp depends/x86_64-pc-linux-gnu/bin/alpha-util "${ARTIFACT_NAME}/bin/"
75+
strip "${ARTIFACT_NAME}/bin/"*
7576
cp COPYING "${ARTIFACT_NAME}/"
7677
tar czf "${ARTIFACT_NAME}.tgz" "${ARTIFACT_NAME}"
7778
echo "ARTIFACT=${ARTIFACT_NAME}.tgz" >> $GITHUB_ENV
@@ -154,6 +155,7 @@ jobs:
154155
cp depends/x86_64-w64-mingw32/bin/alpha-tx.exe "${ARTIFACT_NAME}/"
155156
cp depends/x86_64-w64-mingw32/bin/alpha-wallet.exe "${ARTIFACT_NAME}/"
156157
cp depends/x86_64-w64-mingw32/bin/alpha-util.exe "${ARTIFACT_NAME}/"
158+
x86_64-w64-mingw32-strip "${ARTIFACT_NAME}/"*.exe
157159
cp COPYING "${ARTIFACT_NAME}/"
158160
zip -r "${ARTIFACT_NAME}.zip" "${ARTIFACT_NAME}"
159161
echo "ARTIFACT=${ARTIFACT_NAME}.zip" >> $GITHUB_ENV
@@ -231,6 +233,7 @@ jobs:
231233
cp depends/${MACOS_HOST}/bin/alpha-tx "${ARTIFACT_NAME}/bin/"
232234
cp depends/${MACOS_HOST}/bin/alpha-wallet "${ARTIFACT_NAME}/bin/"
233235
cp depends/${MACOS_HOST}/bin/alpha-util "${ARTIFACT_NAME}/bin/"
236+
strip "${ARTIFACT_NAME}/bin/"*
234237
cp COPYING "${ARTIFACT_NAME}/"
235238
zip -r "${ARTIFACT_NAME}.zip" "${ARTIFACT_NAME}"
236239
echo "ARTIFACT=${ARTIFACT_NAME}.zip" >> $GITHUB_ENV

0 commit comments

Comments
 (0)