Skip to content

Merge upstream

Merge upstream #11

Workflow file for this run

name: .NET
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2022, ubuntu-22.04, macos-14]
steps:
- name: Install OS dependencies
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get install -y fonts-liberation2 fonts-noto-core fonts-noto-cjk
- 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