Skip to content

Commit b22155f

Browse files
Workaround flaky SSL connection installing Android SDKs (#3904)
1 parent b73a294 commit b22155f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,17 @@ jobs:
220220
uses: ./.github/actions/buildnative
221221

222222
- name: Install Android SDKs
223+
id: installandroidsdks
224+
continue-on-error: true
223225
if: runner.os == 'macOS'
224226
run: |
225227
dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android34.0 -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/"
226228
229+
- name: Install Android SDKs (retry)
230+
if: steps.installandroidsdks.outcome=='failure' && runner.os == 'macOS'
231+
run: |
232+
dotnet build src/Sentry/Sentry.csproj -t:InstallAndroidDependencies -f:net8.0-android34.0 -p:AcceptAndroidSDKLicenses=True -p:AndroidSdkPath="/usr/local/lib/android/sdk/"
233+
227234
- name: Publish Test app (macOS)
228235
run: dotnet publish test/Sentry.TrimTest/Sentry.TrimTest.csproj -c Release -r osx-arm64
229236

0 commit comments

Comments
 (0)