ci: Upload sentry debug dSYMs for Apple (#7682)

Needed to print traces in Sentry issues for the apple clients.
This commit is contained in:
Jamil
2025-01-07 02:55:18 -08:00
committed by GitHub
parent 358ae1f92a
commit 24e2503e01
4 changed files with 14 additions and 3 deletions

View File

@@ -70,6 +70,7 @@ jobs:
ISSUER_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_ISSUER_ID }}"
API_KEY_ID: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY_ID }}"
API_KEY: "${{ secrets.APPLE_APP_STORE_CONNECT_API_KEY }}"
RUNNER_TEMP: "${{ runner.temp }}"
- run: ${{ matrix.upload-script }}
if: "${{ github.event_name == 'workflow_dispatch' }}"
env:
@@ -80,6 +81,16 @@ jobs:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
RELEASE_NAME: "${{ matrix.release-name }}"
PLATFORM: "${{ matrix.platform }}"
- name: Setup sentry CLI
if: ${{ github.ref_name == 'main' }}
uses: matbour/setup-sentry-cli@v2
with:
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
organization: firezone-inc
- name: Upload debug symbols to Sentry
if: ${{ github.ref_name == 'main' }}
run: |
sentry-cli debug-files upload --log-level info --project apple-client --include-sources ${{ runner.temp }}
- uses: actions/cache/save@v4
if: ${{ steps.cache.outputs.cache-hit != 'true'}}
name: Save Swift DerivedData Cache

View File

@@ -9,7 +9,7 @@ source "./scripts/build/lib.sh"
# Define needed variables
app_profile_id=8da59aa3-e8da-4a8c-9902-2d540324d92c
ne_profile_id=0fccb78a-97c0-41b9-8c54-9c995280ea8e
temp_dir=$(mktemp -d)
temp_dir="${RUNNER_TEMP:-$(mktemp -d)}"
archive_path="$temp_dir/Firezone.xcarchive"
export_options_plist_path="$temp_dir/ExportOptions.plist"
git_sha=${GITHUB_SHA:-$(git rev-parse HEAD)}

View File

@@ -9,7 +9,7 @@ source "./scripts/build/lib.sh"
# Define needed variables
app_profile_id=2bf20e38-81ea-40d0-91e5-330cf58f52d9
ne_profile_id=2c683d1a-4479-451c-9ee6-ae7d4aca5c93
temp_dir=$(mktemp -d)
temp_dir="${RUNNER_TEMP:-$(mktemp -d)}"
package_path="$temp_dir/Firezone.pkg"
git_sha=${GITHUB_SHA:-$(git rev-parse HEAD)}
project_file=swift/apple/Firezone.xcodeproj

View File

@@ -10,7 +10,7 @@ source "./scripts/build/lib.sh"
app_profile_id=c5d97f71-de80-4dfc-80f8-d0a4393ff082
ne_profile_id=153db941-2136-4d6c-96ef-52f748521e78
notarize=${NOTARIZE:-"false"}
temp_dir=$(mktemp -d)
temp_dir="${RUNNER_TEMP:-$(mktemp -d)}"
dmg_dir="$temp_dir/dmg"
dmg_path="$temp_dir/Firezone.dmg"
package_path="$temp_dir/package.dmg"