SDKREL (0.1.0-alpha06) #158
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: .NET | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2022, ubuntu-22.04, macos-12] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 8 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install workloads | |
run: dotnet workload install macos | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet run --project NAPS2.Tools -- build debug -v | |
# For Mac we need to build a second time to make sure native deps are present. TODO: Figure out why | |
- name: Build 2 | |
if: matrix.os == 'macos-12' | |
run: dotnet run --project NAPS2.Tools -- build debug -v | |
- name: Test | |
run: dotnet run --project NAPS2.Tools -- test -v --nogui |