Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #10
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: Build - MAUI apps | |
on: | |
pull_request: | |
branches: [ main ] | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
DOTNET_NOLOGO: true # Disable the .NET logo | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience | |
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry | |
jobs: | |
# MAUI Android Build | |
build-android: | |
runs-on: windows-latest | |
defaults: | |
run: | |
working-directory: ./src/MauiBlazor.UI/MauiBlazor.UI.Mobile/ | |
name: Android Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install MAUI Workload | |
run: dotnet workload install maui --ignore-failed-sources | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build MAUI Android | |
run: dotnet publish -c Release -f net7.0-android --no-restore | |
- name: Upload Android Artifact | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/[email protected] | |
with: | |
name: mauiblazor-android-ci-build | |
path: /a/MauiBlazorTemplate/MauiBlazorTemplate/src/MauiBlazor.UI/MauiBlazor.UI.Mobile/bin/Release/net7.0-android/publish | |
# MAUI Windows Build | |
build-windows: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
working-directory: ./src/MauiBlazor.UI/MauiBlazor.UI.Mobile/ | |
name: Windows Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install MAUI Workload | |
run: dotnet workload install maui --ignore-failed-sources | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build MAUI Windows | |
run: dotnet publish -c Release -f net7.0-windows10.0.19041.0 --no-restore | |
- name: Upload Windows Artifact | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mauiblazor-windows-ci-build | |
path: \a\MauiBlazorTemplate\MauiBlazorTemplate\src\MauiBlazor.UI\MauiBlazor.UI.Mobile\bin\Release\net7.0-windows10.0.19041.0\win10-x64\publish\ | |
# MAUI iOS Build | |
build-ios: | |
runs-on: macos-12 | |
name: iOS Build | |
defaults: | |
run: | |
working-directory: ./src/MauiBlazor.UI/MauiBlazor.UI.Mobile/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install MAUI Workload | |
run: dotnet workload install maui --ignore-failed-sources | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build MAUI iOS | |
run: dotnet build -c Release -f net7.0-ios --no-restore /p:buildForSimulator=True /p:packageApp=True /p:ArchiveOnBuild=False | |
- name: Upload iOS Artifact | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mauiblazor-ios-ci-build | |
path: /Users/runner/work/MauiBlazorTemplate/MauiBlazorTemplate/src/MauiBlazor.UI/MauiBlazor.UI.Mobile/bin/Release/net7.0-ios/iossimulator-x64/*.app | |
# MAUI MacCatalyst Build | |
build-mac: | |
runs-on: macos-12 | |
name: MacCatalyst Build | |
defaults: | |
run: | |
working-directory: ./src/MauiBlazor.UI/MauiBlazor.UI.Mobile/ | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install MAUI Workload | |
run: dotnet workload install maui --ignore-failed-sources | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build MAUI MacCatalyst | |
run: dotnet publish -f:net7.0-maccatalyst -c:Release --no-restore | |
- name: Upload MacCatalyst Artifact | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: mauiblazor-macos-ci-build | |
path: /Users/runner/work/MauiBlazorTemplate/MauiBlazorTemplate/src/MauiBlazor.UI/MauiBlazor.UI.Mobile/bin/Release/net7.0-maccatalyst/maccatalyst-x64/publish/ |