Force OS target #7
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 Mac | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: macos-latest | |
env: | |
Solution_Name: OpenOTDR | |
CS_Project_Directory: OpenOTDR | |
CS_Project_Path: OpenOTDR/OpenOTDR.csproj | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install MAUI Workloads | |
run: | | |
dotnet workload install maccatalyst --ignore-failed-sources | |
dotnet workload install maui --ignore-failed-sources | |
- name: Build MAUI MacCatalyst | |
run: dotnet build ${{ env.CS_Project_Path }} -p:PublishSingleFile=true -c Release -f net8.0-maccatalyst --os osx-arm64 --self-contained | |
- name: Upload MacCatalyst Artifact | |
uses: actions/[email protected] | |
with: | |
name: macos-ci-build | |
path: src/${{ env.Solution_Name }}/bin/Release/net8.0-maccatalyst/**/*.app/ |