Skip to content

Merge pull request #1 from pictos/pictos-patch-1 #6

Merge pull request #1 from pictos/pictos-patch-1

Merge pull request #1 from pictos/pictos-patch-1 #6

# 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 Windows
on:
push:
branches: [ "main" ]
paths-ignore:
- "**.md"
pull_request:
branches: [ "main" ]
env:
LIB_CSPROJ: PJ.NavigationTrans.Maui/PJ.NavigationTrans.Maui.csproj
SAMPLE_CSPROJ: PJ.NavigationTrans.Sample/PJ.NavigationTrans.Sample.csproj
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- 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
- name: Build library
run: dotnet build ${{env.LIB_CSPROJ}} -c Release --no-restore
- name: Build Sample app
run: dotnet build ${{env.SAMPLE_CSPROJ}} -c Release --no-restore