diff --git a/.github/workflows/build-distributions.yml b/.github/workflows/build-distributions.yml index 9db93ff42..53d59e06c 100644 --- a/.github/workflows/build-distributions.yml +++ b/.github/workflows/build-distributions.yml @@ -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 @@ -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