From d0cff44d527a7751cc2d2b0787c472edfdbad156 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Fri, 3 May 2024 21:37:28 +0200 Subject: [PATCH] Try to fix CI GitHub's macOS images apparently don't have .NET 6 anymore. Skip .NET 6 tests on those. Also, add x64 macOS CI back, so we're testing both ARM64 macOS and x64 macOS still. --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a5e06d7..8a8e62fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,9 +12,15 @@ jobs: strategy: matrix: - os: [windows-latest, ubuntu-latest, macos-latest] + os: [windows-latest, ubuntu-latest, macos-latest, macos-latest-large] steps: - uses: actions/checkout@v2 - - name: Test - run: dotnet test --configuration Release -v n + - name: Test .NET 6 + # macOS images don't have .NET 6. + if: matrix.os != 'macos-latest' && matrix.os != 'macos-latest-large' + run: dotnet test --configuration Release --framework net6.0 -v n + - name: Test .NET 7 + run: dotnet test --configuration Release --framework net7.0 -v n + - name: Test .NET 8 + run: dotnet test --configuration Release --framework net8.0 -v n