Skip to content

Commit

Permalink
Disable sentry on system where it's inactive
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nirvn committed Feb 23, 2025
1 parent 3504111 commit e4b0159
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ jobs:
-D ENABLE_TESTS=ON \
-D NUGET_USERNAME=opengisch \
-D NUGET_TOKEN=${{ secrets.GITHUB_TOKEN }} \
-D SENTRY_DSN=${{ secrets.SENTRY_DSN }} \
-D SENTRY_ENV="${APP_ENV}" \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_EXPORT_COMPILE_COMMANDS=ON \
-D CMAKE_COMPILE_WARNING_AS_ERROR=ON \
-D LINUXDEPLOY_EXECUTABLE=${{ env.BUILD_ROOT }}/linuxdeploy-x86_64.AppImage
# -D SENTRY_DSN=${{ secrets.SENTRY_DSN }} \
# -D SENTRY_ENV="${APP_ENV}" \
- name: 📑 Upload dep build logs
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -171,14 +171,14 @@ jobs:
asset_name: ${{ env.ARTIFACT_NAME }}
overwrite: true

- name: 📮 Upload debug symbols
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && env.ARTIFACT_NAME != null
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG_SLUG: opengisch
SENTRY_PROJECT_SLUG: qfield
run: |
bundle exec fastlane run sentry_debug_files_upload path:build
# - name: 📮 Upload debug symbols
# if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && env.ARTIFACT_NAME != null
# env:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG_SLUG: opengisch
# SENTRY_PROJECT_SLUG: qfield
# run: |
# bundle exec fastlane run sentry_debug_files_upload path:build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ jobs:
-D ENABLE_TESTS=ON \
-D NUGET_USERNAME=opengisch \
-D NUGET_TOKEN=${{ secrets.GITHUB_TOKEN }} \
-D SENTRY_DSN=${{ secrets.SENTRY_DSN }} \
-D SENTRY_ENV="${APP_ENV}" \
-D CMAKE_MSVC_RUNTIME_LIBRARY="MultiThreaded\$<\$<CONFIG:Debug>:Debug>" \
-D PKG_CONFIG_EXECUTABLE=${CMAKE_BUILD_DIR}/vcpkg_installed/x64-windows-static/tools/pkgconf/pkgconf.exe \
-D WITH_BLUETOOTH=ON \
-D VCPKG_INSTALL_OPTIONS="--x-buildtrees-root=C:/src" \
-D CMAKE_COMPILE_WARNING_AS_ERROR=ON \
${EXTRA_CMAKE_ARGS}
# -D SENTRY_DSN=${{ secrets.SENTRY_DSN }} \
# -D SENTRY_ENV="${APP_ENV}" \

- name: 📑 Upload dep build logs
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -198,14 +198,14 @@ jobs:
run: |
bundle exec fastlane windows upload_s3 exe:${{ env.ARTIFACT_PATHNAME }}
- name: 📮 Upload debug symbols
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && env.ARTIFACT_NAME != null
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG_SLUG: opengisch
SENTRY_PROJECT_SLUG: qfield
run: |
bundle exec fastlane run sentry_debug_files_upload path:${{ env.CMAKE_BUILD_DIR }}
# - name: 📮 Upload debug symbols
# if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') && env.ARTIFACT_NAME != null
# env:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG_SLUG: opengisch
# SENTRY_PROJECT_SLUG: qfield
# run: |
# bundle exec fastlane run sentry_debug_files_upload path:${{ env.CMAKE_BUILD_DIR }}

deploy:
name: deploy (ms store)
Expand Down

1 comment on commit e4b0159

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.