Mac: Fixes for ChooseDeviceForm #320
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 }} | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
os: [windows-2022, ubuntu-24.04, macos-14] | |
steps: | |
- name: Install OS dependencies | |
if: matrix.os == 'ubuntu-24.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 |