Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonStalnaker committed Aug 12, 2024
1 parent 9a0628b commit b421b4b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ on:

jobs:
Build:
runs-on: macos-10.15
runs-on: macOS-13
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Build artifacts
run: ./build.sh

Android:
runs-on: macos-10.15
runs-on: macos-13
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Android
run: |
nuget restore
dotnet restore
cd Samples/mParticle.Xamarin.Android.Sample
msbuild
dotnet build
iOS:
runs-on: macos-10.15
runs-on: macos-13
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: iOS
run: |
nuget restore
dotnet restore
cd Samples/mParticle.Xamarin.iOS.Sample
msbuild
dotnet build
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Branch name
run: |
BRANCHNAME=${GITHUB_REF##*/}
Expand All @@ -29,11 +29,11 @@ jobs:
release-to-nuget:
name: Release and Sync Repos
runs-on: macos-10.15
runs-on: macos-13
needs: ['confirm-master-branch']
steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Build artifacts
run: ./build.sh
- name: Release to Nuget
Expand Down
33 changes: 18 additions & 15 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
nuget restore
msbuild Bindings/mParticle.Xamarin.AndroidBinding/mParticle.Xamarin.AndroidBinding.csproj /p:Configuration=Release /t:Rebuild
msbuild Bindings/mParticle.Xamarin.iOSBinding/mParticle.Xamarin.iOSBinding.csproj /p:Configuration=Release /t:Rebuild
msbuild Library/mParticle.Xamarin/mParticle.Xamarin.csproj /p:Configuration=Release /t:Rebuild
msbuild Library/mParticle.Xamarin.Abstractions/mParticle.Xamarin.Abstractions.csproj /p:Configuration=Release /t:Rebuild
msbuild Library/mParticle.Xamarin.Android/mParticle.Xamarin.Android.csproj /p:Configuration=Release /t:Rebuild
msbuild Library/mParticle.Xamarin.iOS/mParticle.Xamarin.iOS.csproj /p:Configuration=Release /t:Rebuild
dotnet workload restore
dotnet workload restore [/Users/runner/work/mparticle-xamarin-sdk/mparticle-xamarin-sdk/Bindings/mParticle.MAUI.iOSBinding/mParticle.MAUI.iOSBinding.csproj]
dotnet workload restore [/Users/runner/work/mparticle-xamarin-sdk/mparticle-xamarin-sdk/Library/mParticle.MAUI.Abstractions/mParticle.MAUI.Abstractions.csproj::TargetFramework=net8.0-android]
dotnet workload restore [/Users/runner/work/mparticle-xamarin-sdk/mparticle-xamarin-sdk/Library/mParticle.MAUI.iOS/mParticle.MAUI.iOS.csproj]
#dotnet build Bindings/mParticle.Xamarin.AndroidBinding/mParticle.Xamarin.AndroidBinding.csproj
#dotnet build Bindings/mParticle.Xamarin.iOSBinding/mParticle.Xamarin.iOSBinding.csproj
#dotnet build Library/mParticle.Xamarin/mParticle.Xamarin.csproj
#dotnet build Library/mParticle.Xamarin.Abstractions/mParticle.Xamarin.Abstractions.csproj
#dotnet build Library/mParticle.Xamarin.Android/mParticle.Xamarin.Android.csproj
#dotnet build Library/mParticle.Xamarin.iOS/mParticle.Xamarin.iOS.csproj

msbuild Bindings/mParticle.MAUI.iOSBinding/mParticle.MAUI.iOSBinding.csproj /p:Configuration=Release /t:Rebuild
msbuild Library/mParticle.MAUI.Abstractions/mParticle.MAUI.Abstractions.csproj /p:Configuration=Release /t:Rebuild
msbuild Library/mParticle.MAUI.iOS/mParticle.MAUI.iOS.csproj /p:Configuration=Release /t:Rebuild
dotnet build Bindings/mParticle.MAUI.iOSBinding/mParticle.MAUI.iOSBinding.csproj
dotnet build Library/mParticle.MAUI.Abstractions/mParticle.MAUI.Abstractions.csproj
dotnet build Library/mParticle.MAUI.iOS/mParticle.MAUI.iOS.csproj

msbuild Samples/mParticle.Xamarin.Android.Sample/mParticle.Xamarin.Android.Sample.csproj /p:Configuration=Debug /t:Rebuild
msbuild Samples/mParticle.Xamarin.Forms.Sample.Droid/mParticle.Xamarin.Forms.Sample.Droid.csproj /p:Configuration=Debug /t:Rebuild
msbuild Samples/mParticle.Xamarin.Forms.Sample.iOS/mParticle.Xamarin.Forms.Sample.iOS.csproj /p:Configuration=Debug /t:Rebuild
msbuild Samples/mParticle.Xamarin.iOS.Sample/mParticle.Xamarin.iOS.Sample.csproj /p:Configuration=Debug /t:Rebuild
#dotnet build Samples/mParticle.Xamarin.Android.Sample/mParticle.Xamarin.Android.Sample.csproj
#dotnet build Samples/mParticle.Xamarin.Forms.Sample.Droid/mParticle.Xamarin.Forms.Sample.Droid.csproj
#dotnet build Samples/mParticle.Xamarin.Forms.Sample.iOS/mParticle.Xamarin.Forms.Sample.iOS.csproj
#dotnet build Samples/mParticle.Xamarin.iOS.Sample/mParticle.Xamarin.iOS.Sample.csproj

nuget pack Library/mparticle.nuspec
#dotnet pack Library/mparticle.nuspec

0 comments on commit b421b4b

Please sign in to comment.