Skip to content

Commit

Permalink
rebase to patch branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-zimerman authored Apr 30, 2024
1 parent 86e7bb7 commit 16efe24
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 182 deletions.
50 changes: 17 additions & 33 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,21 @@ jobs:
run:
pwsh ./scripts/install-win-sdk.ps1 16299
if: startsWith(matrix.os, 'windows')
- name: Setup Java SDK

# Setup Xamarin SDK that got removed on the latest MacOS VM
- name: Setup Xamarin MacOS SDK
if: startsWith(matrix.os, 'macos')
run: |
brew tap homebrew/cask-versions
brew install --cask xamarin-mac
- name: Setup Xamarin Android SDK
if: startsWith(matrix.os, 'macos')
run: brew install --cask xamarin-android
- name: Setup Xamarin iOS SDK
if: startsWith(matrix.os, 'macos')
run: brew install --cask xamarin-ios

- name: Setup Java SDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
Expand All @@ -38,40 +51,11 @@ jobs:
uses: android-actions/setup-android@07976c6290703d34c16d382cb36445f98bb43b1f # v3.2.0
with:
packages: 'platforms;android-30'
- name: Setup Xamarin MacOS SDK
if: startsWith(matrix.os, 'macos')
run: brew install --cask xamarin-mac
- name: Setup Xamarin Android SDK
if: startsWith(matrix.os, 'macos')
run: brew install --cask xamarin-android
- name: Setup Xamarin iOS SDK
if: startsWith(matrix.os, 'macos')
run: brew install --cask xamarin-ios

- run: msbuild Sentry.Xamarin.sln -p:Configuration=Release -t:restore

- name: Restore X64
if: startsWith(matrix.os, 'windows')
run: msbuild Sentry.Xamarin.sln -p:Configuration=Release /p:Platform=x64

- name: Build Solution with MSBuild
run: msbuild Sentry.Xamarin.sln -p:Configuration=Release

- name: Restore iOS Sample app NuGet
run: msbuild Samples/Sample.Xamarin.iOS/Sample.Xamarin.iOS.csproj -p:Configuration=Release -t:restore
if: startsWith(matrix.os, 'macos')
- name: Build iOS Sample app
run: msbuild Samples/Sample.Xamarin.iOS/Sample.Xamarin.iOS.csproj -p:Configuration=Release
if: startsWith(matrix.os, 'macos')
- name: Build Android Sample app
run: msbuild Samples/Sample.Xamarin.Droid/Sample.Xamarin.Droid.csproj -p:Configuration=Release
if: startsWith(matrix.os, 'windows')
- name: Build UWP Sample app
run: msbuild Samples/Sample.Xamarin.UWP/Sample.Xamarin.UWP.csproj /p:Platform=x64 /p:Configuration=Release
if: startsWith(matrix.os, 'windows')
- name: Build UWP Test Project
run: msbuild Tests/Sentry.Xamarin.Forms.UWP.Tests/Sentry.Xamarin.Forms.UWP.Tests.csproj /p:Platform=x64 /p:Configuration=Release
if: startsWith(matrix.os, 'windows')
- name: Build SDK, Sample and Tests
run: msbuild Sentry.Xamarin-CI-Build-${{ runner.os }}.slnf -p:Configuration=Release

- name: Setup VS Test
uses: darenm/Setup-VSTest@v1
if: startsWith(matrix.os, 'windows')
Expand Down
Loading

0 comments on commit 16efe24

Please sign in to comment.