Skip to content

Commit 678c795

Browse files
committed
Upload debug info to sentry
1 parent 72fb036 commit 678c795

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ on:
3838
required: false
3939
manual_netlify_site_id:
4040
required: false
41+
sentry_auth_token:
42+
required: false
43+
sentry_org:
44+
required: false
45+
sentry_project:
46+
required: false
4147

4248
jobs:
4349
build:
@@ -53,6 +59,12 @@ jobs:
5359
- run: nix build .#packages.${{ inputs.system }}.default .#packages.${{ inputs.system }}.binaryTarball --no-link -L
5460
- run: nix build .#packages.${{ inputs.system }}.binaryTarball --out-link tarball
5561
- run: nix build .#packages.${{ inputs.system }}.nix-cli-static --no-link -L
62+
- run: nix build .#^debug,out
63+
- run: ./maintainers/upload-debug-info-to-sentry.py --debug-dir ./result-debug ./result/bin/nix
64+
env:
65+
SENTRY_AUTH_TOKEN: ${{ secrets.sentry_auth_token }}
66+
SENTRY_ORG: ${{ secrets.sentry_org }}
67+
SENTRY_PROJECT: ${{ secrets.sentry_project }}
5668
- uses: actions/upload-artifact@v4
5769
with:
5870
name: ${{ inputs.system }}

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
secrets:
4545
manual_netlify_auth_token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
4646
manual_netlify_site_id: ${{ secrets.NETLIFY_SITE_ID }}
47+
sentry_auth_token: ${{ secrets.SENTRY_AUTH_TOKEN }}
48+
sentry_org: ${{ secrets.SENTRY_ORG }}
49+
sentry_project: ${{ secrets.SENTRY_PROJECT }}
4750

4851
build_aarch64-linux:
4952
uses: ./.github/workflows/build.yml

maintainers/upload-debug-info-to-sentry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env nix
2+
#!nix shell --inputs-from . nixpkgs#sentry-cli --command python3
23

34
import argparse
45
import json

0 commit comments

Comments
 (0)