|
16 | 16 | strategy: |
17 | 17 | fail-fast: false |
18 | 18 | matrix: |
19 | | - # Pin macos to get the version of XCode that we need: https://github.com/actions/runner-images/issues/10703 |
| 19 | + # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703 |
20 | 20 | os: [ubuntu-latest, windows-latest, macos-15] |
21 | 21 |
|
22 | 22 | steps: |
|
53 | 53 | strategy: |
54 | 54 | fail-fast: false |
55 | 55 | matrix: |
56 | | - # Pin macos to get the version of XCode that we need: https://github.com/actions/runner-images/issues/10703 |
| 56 | + # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703 |
57 | 57 | os: [ubuntu-latest, windows-latest, macos-15] |
58 | 58 |
|
59 | 59 | steps: |
@@ -154,7 +154,7 @@ jobs: |
154 | 154 | strategy: |
155 | 155 | fail-fast: false |
156 | 156 | matrix: |
157 | | - # Pin macos to get the version of XCode that we need: https://github.com/actions/runner-images/issues/10703 |
| 157 | + # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703 |
158 | 158 | os: [ubuntu-latest, windows-latest, macos-15] |
159 | 159 |
|
160 | 160 | steps: |
@@ -187,6 +187,52 @@ jobs: |
187 | 187 | with: |
188 | 188 | path: integration-test |
189 | 189 |
|
| 190 | + |
| 191 | + trim-analysis: |
| 192 | + name: Trim analysis |
| 193 | + runs-on: macos-15 |
| 194 | + |
| 195 | + steps: |
| 196 | + - name: Checkout |
| 197 | + uses: actions/checkout@v4 |
| 198 | + with: |
| 199 | + submodules: recursive |
| 200 | + fetch-depth: 2 # default is 1 and codecov needs > 1 |
| 201 | + |
| 202 | + # We use macOS for the final publishing build so we get all the iOS/macCatalyst targets in the packages |
| 203 | + - name: Set Environment Variables |
| 204 | + run: echo "CI_PUBLISHING_BUILD=true" >> $GITHUB_ENV |
| 205 | + |
| 206 | + - name: Download sentry-native (macOS) |
| 207 | + uses: actions/cache/restore@v4 |
| 208 | + with: |
| 209 | + path: src/Sentry/Platforms/Native/sentry-native |
| 210 | + key: sentry-native-macOS-${{ hashFiles('scripts/build-sentry-native.ps1') }}-${{ hashFiles('.git/modules/modules/sentry-native/HEAD') }} |
| 211 | + fail-on-cache-miss: true |
| 212 | + |
| 213 | + - name: Setup Environment |
| 214 | + uses: ./.github/actions/environment |
| 215 | + |
| 216 | + - name: Build Native Dependencies |
| 217 | + uses: ./.github/actions/buildnative |
| 218 | + |
| 219 | + - name: Install Android SDKs |
| 220 | + if: runner.os == 'macOS' |
| 221 | + run: | |
| 222 | + dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android34.0 -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/" |
| 223 | +
|
| 224 | + - name: Publish Test app (macOS) |
| 225 | + run: dotnet publish test/Sentry.TrimTest/Sentry.TrimTest.csproj -c Release -r osx-arm64 |
| 226 | + |
| 227 | + - name: Publish Test app (Android) |
| 228 | + run: dotnet publish test/Sentry.MauiTrimTest/Sentry.MauiTrimTest.csproj -c Release -f net9.0-android35.0 -r android-arm64 |
| 229 | + |
| 230 | +# We can't publish iOS applications on CI yet. We'd need a valid bundle identifier and to install the relevant |
| 231 | +# certificates/profiles on CI (presumably certs associated with the Sentry org). |
| 232 | +# See https://youtrack.jetbrains.com/issue/RIDER-17115/Could-not-find-any-available-provisioning-profiles-for-iOS |
| 233 | +# - name: Publish Test app (iOS) |
| 234 | +# run: dotnet publish test/Sentry.MauiTrimTest/Sentry.MauiTrimTest.csproj -c Release -f net9.0-ios18.0 -r ios-arm64 |
| 235 | + |
190 | 236 | test-solution-filters: |
191 | 237 | runs-on: ubuntu-latest |
192 | 238 | if: ${{ !startsWith(github.ref_name, 'release/') }} |
|
0 commit comments