Skip to content

CI Build

CI Build #83

Workflow file for this run

name: CI Build
on:
pull_request:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
jobs:
# MAUI Android Build
build-android:
runs-on: macos-latest
name: Android Build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Install MAUI Workload
run: dotnet workload install maui --ignore-failed-sources
- name: Restore Dependencies
run: dotnet restore ToDoListApp.csproj
- name: Build MAUI Android
run: dotnet publish ToDoListApp.sln -c Debug -f net8.0-android
# - name: Upload Android Artifact
# uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8
# with:
# name: ToDoList-android-ci-build
# path: .NetMAUI-To-Do-List-App/bin/Release/net8.0-android/*Signed.a*
# MAUI iOS Build
build-ios:
runs-on: macos-14
name: iOS Build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
- name: Install MAUI Workloads
run: |
dotnet workload install ios --ignore-failed-sources
dotnet workload install maui --ignore-failed-sources
- name: Select Xcode 15.4
run: sudo xcode-select -s /Applications/Xcode_15.4.app
- name: Build MAUI iOS
run: |
dotnet build ToDoListApp.csproj -c Release -f net8.0-ios
# - name: Upload iOS Artifact
# uses: actions/[email protected]
# with:
# name: ios-ci-build
# path: src/MauiBeach/bin/Release/net6.0-ios/**/*.app/
- name: Create Release
uses: ncipollo/[email protected]
with:
tag: v1.7.7.5