Skip to content

Commit

Permalink
chore: strip Linux backend debug info and upload to Sentry (#3188)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajivshah3 authored May 19, 2022
1 parent c9f3aef commit 2f8a723
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,22 @@ jobs:
- name: Install Sentry CLI
# Yarn has issues putting binaries in the PATH on Windows
run: npm i -g @sentry/cli
if: ${{ startsWith(github.ref, 'refs/tags/desktop') && matrix.os == 'windows-2019' }}
if: ${{ startsWith(github.ref, 'refs/tags/desktop') && matrix.os != 'macos-10.15' }}

- name: Strip backend debug info and upload to Sentry (Linux)
run: |
cp index.node index.node.dbg
strip -S index.node
objcopy --add-gnu-debuglink=index.node.dbg index.node
sentry-cli difutil check index.node.dbg
sentry-cli upload-dif -o "iota-foundation-h4" -p "firefly-backend" --include-sources index.node.dbg
sentry-cli upload-dif -o "iota-foundation-h4" -p "firefly-desktop" --include-sources index.node.dbg
working-directory: packages/backend/bindings/node
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
if: ${{ startsWith(github.ref, 'refs/tags/desktop') && matrix.os == 'ubuntu-18.04' }}

- name: Upload backend PDB (Windows)
- name: Upload backend debug info to Sentry (Windows)
run: |
sentry-cli difutil check node_neon.pdb
sentry-cli upload-dif -o "iota-foundation-h4" -p "firefly-backend" --include-sources node_neon.pdb
Expand Down

0 comments on commit 2f8a723

Please sign in to comment.