Skip to content

organize folder

organize folder #19

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Build project on macOS
on:
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
LIB_CSPROJ: src/PJ.ContextActions.Maui/PJ.ContextActions.Maui.csproj
SAMPLE_CSPROJ: samples/PJ.ContextActions.Sample/PJ.ContextActions.Sample.csproj
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.4'
- name: Workload install
run: dotnet workload install maui
- name: Restore library dependencies
run: dotnet restore ${{env.LIB_CSPROJ}}
- name: Restore sample dependencies
run: dotnet restore ${{env.SAMPLE_CSPROJ}}
- name: Build library
run: dotnet build ${{env.LIB_CSPROJ}} -c Release -f net9.0-ios --no-restore
- name: Build Sample app
run: dotnet build ${{env.SAMPLE_CSPROJ}} -c Release -f net9.0-ios --no-restore