Skip to content

Commit

Permalink
Compress linux debug files
Browse files Browse the repository at this point in the history
  • Loading branch information
marcins committed Apr 30, 2024
1 parent be7ee80 commit ee048fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
- name: Extract debug symbols
if: ${{ inputs.profile == 'canary' }}
run: |
find packages -name "*.node" -type f -exec objcopy --only-keep-debug {} {}.debug \;
find packages -name "*.node" -type f -exec objcopy --only-keep-debug --compress-debug-sections=zlib {} {}.debug \;
find packages -name "*.node" -type f -exec objcopy --strip-debug --strip-unneeded {} \;
find packages -name "*.node" -type f -exec objcopy --add-gnu-debuglink={}.debug {} \;
- name: Upload debug symbols
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
- name: Extract debug symbols
if: ${{ inputs.profile == 'canary' }}
run: |
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --only-keep-debug {} {}.debug \;
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --only-keep-debug --compress-debug-sections=zlib {} {}.debug \;
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --strip-debug --strip-unneeded {} \;
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --add-gnu-debuglink={}.debug {} \;
- name: Upload debug symbols
Expand Down Expand Up @@ -236,7 +236,7 @@ jobs:
- name: Extract debug symbols
if: ${{ inputs.profile == 'canary' }}
run: |
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --only-keep-debug {} {}.debug \;
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --only-keep-debug --compress-debug-sections=zlib {} {}.debug \;
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --strip-debug --strip-unneeded {} \;
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --add-gnu-debuglink={}.debug {} \;
- name: Upload debug symbols
Expand Down

0 comments on commit ee048fa

Please sign in to comment.