Update nuget.yml #523
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
# MAUI Android Build | |
build-android: | |
runs-on: windows-latest | |
name: Android Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET 7 | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install MAUI Workload | |
run: dotnet workload install maui --ignore-failed-sources | |
- name: Restore Dependencies | |
run: dotnet restore 'Sample/NuGet v1000/LocalNotification.Sample/LocalNotification.Sample.csproj' | |
- name: Build MAUI Android | |
run: dotnet publish 'Sample/NuGet v1000/LocalNotification.Sample/LocalNotification.Sample.csproj' -c Release -f net7.0-android --no-restore | |
- name: Upload Android Artifact | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: mauibeach-android-ci-build | |
path: 'Sample/NuGet v1000/LocalNotification.Sample/bin/Release/net7.0-android/*Signed.a*' | |
# MAUI iOS Build | |
build-ios: | |
runs-on: macos-13 | |
name: iOS Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET 7 | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install MAUI Workload | |
run: dotnet workload install maui --ignore-failed-sources | |
- name: Set XCode Version | |
shell: bash | |
run: | | |
sudo xcode-select -s "/Applications/Xcode_14.3.app" | |
echo "MD_APPLE_SDK_ROOT=/Applications/Xcode_14.3.app" >> $GITHUB_ENV | |
- name: Restore Dependencies | |
run: dotnet restore 'Sample/NuGet v1000/LocalNotification.Sample/LocalNotification.Sample.csproj' | |
- name: Build MAUI iOS | |
run: dotnet build 'Sample/NuGet v1000/LocalNotification.Sample/LocalNotification.Sample.csproj' -c Release -f net7.0-ios --no-restore /p:buildForSimulator=True /p:packageApp=True /p:ArchiveOnBuild=False | |
- name: Upload iOS Artifact | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: mauibeach-ios-ci-build | |
path: 'Sample/NuGet v1000/LocalNotification.Sample/bin/Release/net7.0-ios/iossimulator-x64/**/*.app' |