Skip to content

Commit

Permalink
Strip debug symbols (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek authored May 14, 2024
1 parent 1285158 commit b48493b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-distributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ jobs:
/home/python/bin/python -m pip install
${{ inputs.version && format('hatch=={0}', inputs.version) || '/home/hatch' }}
- name: Strip debug symbols
run: >-
docker exec builder
sh -c "find /home/python -name '*.so' | xargs strip -S"
- name: Archive distribution
run: >-
docker exec builder
Expand Down Expand Up @@ -149,6 +154,10 @@ jobs:
-m pip install
${{ inputs.version && format('hatch=={0}', inputs.version) || '.' }}
- name: Strip debug symbols
if: startsWith(matrix.job.os, 'macos-')
run: find python -name '*.so' | xargs strip -S

- name: Remove debug symbols
if: startsWith(matrix.job.os, 'windows-')
run: Get-ChildItem -Path python -Filter "*.pdb" -Recurse | Remove-Item
Expand Down

0 comments on commit b48493b

Please sign in to comment.