From 8afed63683e99db5070882122f985cc8644a3516 Mon Sep 17 00:00:00 2001 From: David Hummel <6109326+hummeltech@users.noreply.github.com> Date: Fri, 26 Apr 2024 10:58:32 -0700 Subject: [PATCH] macos-latest changed from macOS 12 on amd64 to arm64 This seems to have happened around 2024.04.23 https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/ --- .github/workflows/build_and_test.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index e1f56a92f..1ffdf4822 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -29,16 +29,24 @@ jobs: Build & Test (${{ matrix.os }}) (C++ ${{ matrix.cxx-standard }}) + ${{ startsWith(matrix.os, 'macos-') && (matrix.os == 'macos-14' && '(ARM64)' || '(AMD64)') || '' }} needs: checkSource strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-latest] - cxx-standard: [17] + os: + - macos-13 + - macos-14 + - ubuntu-latest + - windows-latest + cxx-standard: + - 17 include: - - os: ubuntu-latest + - os: macos-13 mono: mono - - os: macos-latest + - os: macos-14 + mono: mono + - os: ubuntu-latest mono: mono - os: windows-latest @@ -75,15 +83,10 @@ jobs: nuget-pat: ${{ secrets.GITHUB_TOKEN }} mono: ${{ matrix.mono }} - - id: lc_platform - uses: ASzc/change-string-case-action@v6 - with: - string: ${{ runner.os }} - - name: set lower case runner os shell: bash run: | - echo "PRESET=${{ steps.lc_platform.outputs.lowercase }}-ci" >>${GITHUB_ENV} + echo "PRESET=$(echo "${{ runner.os }}" | perl -ne "print lc")-ci" >> ${GITHUB_ENV} - name: Configure CMake shell: bash