mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:41:02 +02:00
Merge pull request #446 from daleglass-overte/gha-add-sentry-token
Build with crash reporting against Sentry
This commit is contained in:
commit
758d98a397
3 changed files with 14 additions and 2 deletions
11
.github/workflows/linux_server_build.yml
vendored
11
.github/workflows/linux_server_build.yml
vendored
|
@ -19,6 +19,8 @@ env:
|
||||||
UPLOAD_BUCKET: overte-public
|
UPLOAD_BUCKET: overte-public
|
||||||
UPLOAD_REGION: fra1
|
UPLOAD_REGION: fra1
|
||||||
UPLOAD_ENDPOINT: "https://fra1.digitaloceanspaces.com"
|
UPLOAD_ENDPOINT: "https://fra1.digitaloceanspaces.com"
|
||||||
|
CMAKE_BACKTRACE_URL: ${{ secrets.SENTRY_MINIDUMP_ENDPOINT }}
|
||||||
|
CMAKE_BACKTRACE_TOKEN: server_${{ github.event.number }}_${{ github.sha }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -208,7 +210,14 @@ jobs:
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
working-directory: build
|
working-directory: build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_BUILD_TYPE=release $CMAKE_EXTRA
|
run: |
|
||||||
|
if [ -z "$CMAKE_BACKTRACE_URL" ] ; then
|
||||||
|
# We're building a PR, default to the PR endpoint
|
||||||
|
export CMAKE_BACKTRACE_URL="https://o4504831972343808.ingest.sentry.io/api/4504832427950080/minidump/?sentry_key=f511de295975461b8f92a36f4a4a4f32"
|
||||||
|
export CMAKE_BACKTRACE_TOKEN="server_pr_${{ github.event.number }}_${{ github.sha }}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_BUILD_TYPE=release $CMAKE_EXTRA
|
||||||
|
|
||||||
- name: Compress cmake logs
|
- name: Compress cmake logs
|
||||||
if: always()
|
if: always()
|
||||||
|
|
2
.github/workflows/master_build.yml
vendored
2
.github/workflows/master_build.yml
vendored
|
@ -24,6 +24,8 @@ env:
|
||||||
UPLOAD_BUCKET: overte-public
|
UPLOAD_BUCKET: overte-public
|
||||||
UPLOAD_REGION: fra1
|
UPLOAD_REGION: fra1
|
||||||
UPLOAD_ENDPOINT: "https://fra1.digitaloceanspaces.com"
|
UPLOAD_ENDPOINT: "https://fra1.digitaloceanspaces.com"
|
||||||
|
CMAKE_BACKTRACE_URL: ${{ secrets.SENTRY_MINIDUMP_ENDPOINT }}
|
||||||
|
CMAKE_BACKTRACE_TOKEN: master_${{ github.event.number }}_${{ github.sha }}
|
||||||
|
|
||||||
# OSX-specific variables
|
# OSX-specific variables
|
||||||
DEVELOPER_DIR: /Applications/Xcode_11.2.app/Contents/Developer
|
DEVELOPER_DIR: /Applications/Xcode_11.2.app/Contents/Developer
|
||||||
|
|
3
.github/workflows/pr_build.yml
vendored
3
.github/workflows/pr_build.yml
vendored
|
@ -21,7 +21,8 @@ env:
|
||||||
RELEASE_NUMBER: ${{ github.event.number }}
|
RELEASE_NUMBER: ${{ github.event.number }}
|
||||||
VERSION_CODE: ${{ github.event.number }}
|
VERSION_CODE: ${{ github.event.number }}
|
||||||
# Sentry Crash Reporting
|
# Sentry Crash Reporting
|
||||||
CMAKE_BACKTRACE_URL:
|
# We can't use secrets or actions here, so the actual value has to be hardcoded.
|
||||||
|
CMAKE_BACKTRACE_URL: "https://o4504831972343808.ingest.sentry.io/api/4504832427950080/minidump/?sentry_key=f511de295975461b8f92a36f4a4a4f32"
|
||||||
CMAKE_BACKTRACE_TOKEN: PR_${{ github.event.number }}_${{ github.sha }}
|
CMAKE_BACKTRACE_TOKEN: PR_${{ github.event.number }}_${{ github.sha }}
|
||||||
|
|
||||||
UPLOAD_BUCKET: overte-public
|
UPLOAD_BUCKET: overte-public
|
||||||
|
|
Loading…
Reference in a new issue