From b6eb86f3356a1455caefd7f0bd70df4d3cfc2ea4 Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Fri, 31 Jan 2025 09:50:49 +0100 Subject: [PATCH] CI: run macOS build for x64/arm64 CPUs --- .github/workflows/ci_macos.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_macos.yml b/.github/workflows/ci_macos.yml index 3e71a36d..1fd2eb19 100644 --- a/.github/workflows/ci_macos.yml +++ b/.github/workflows/ci_macos.yml @@ -7,11 +7,17 @@ jobs: strategy: matrix: qt_version_major: [5, 6] + os: [macos-latest-large, macos-latest-xlarge] - runs-on: macos-latest - name: build-macos-qt${{matrix.qt_version_major}} + runs-on: ${{matrix.os}} + name: build-${{matrix.os}}-qt${{matrix.qt_version_major}} steps: + - name: Set globals + id: globals + run: | + echo qt_path=$(brew --prefix qt@${{matrix.qt_version_major}}) >> ${GITHUB_OUTPUT} + - name: Checkout uses: actions/checkout@v2 @@ -36,7 +42,7 @@ jobs: cmake .. \ -DMayo_BuildTests=ON \ -DMayo_BuildPluginAssimp=ON \ - -DQT_DIR=$(brew --prefix qt@${{matrix.qt_version_major}})/lib/cmake/Qt${{matrix.qt_version_major}} + -DQT_DIR=${{steps.globals.outputs.qt_path}}/lib/cmake/Qt${{matrix.qt_version_major}} cmake --build . \ --config Release \ --parallel ${{steps.cpu-cores.outputs.count}}