Skip to content

Commit

Permalink
CI: run macOS build for x64/arm64 CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Jan 31, 2025
1 parent 6de678c commit b6eb86f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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}}
Expand Down

0 comments on commit b6eb86f

Please sign in to comment.