Update packaging #212
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 | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '**.cs' | |
- '**.csproj' | |
- '**.xaml' | |
pull_request: | |
branches: [ main ] | |
paths: | |
- '**.cs' | |
- '**.csproj' | |
- '**.xaml' | |
- '**.targets' | |
- '**.props' | |
env: | |
DOTNET_VERSION: '9.0.x' # The .NET SDK version to use | |
jobs: | |
build: | |
name: Build All Projects | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
project: | |
- Part 1 - Displaying Data | |
- Part 2 - MVVM | |
- Part 3 - Navigation | |
- Part 4 - Platform Features | |
- Part 5 - CollectionView | |
- Part 6 - AppThemes | |
- Community Modules/XAML/Part 1 - Fundamentals/Finish | |
- Community Modules/XAML/Part 2 - Responsibility/Finish | |
- Community Modules/XAML/Part 3 - Magic Values/Finish | |
- Community Modules/XAML/Part 4 - Naming/Finish | |
- Community Modules/XAML/Part 5 - Custom Types/Finish | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v2 | |
with: | |
vs-prerelease: true | |
- name: Install .NET workloads | |
shell: pwsh | |
run: | | |
dotnet workload install android | |
dotnet workload install ios | |
dotnet workload install maccatalyst | |
dotnet workload install maui | |
- name: Build ${{ matrix.project }} | |
run: dotnet build "${{ matrix.project }}/MonkeyFinder/MonkeyFinder.csproj" |