Skip to content

Commit

Permalink
Fix GitHub CI as it now uses AppleSilicon HW
Browse files Browse the repository at this point in the history
Qt5 open source only supports x86_64 builds
on macOS, this makes sure we build for the
available archtecture.
  • Loading branch information
dantti committed Jul 4, 2024
1 parent 5909b6d commit 12ff98d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ jobs:

config:
- qt_version: "5.12"
macos_architectures: "x86_64"
- qt_version: "6.6.0"
macos_architectures: "x86_64;arm64"

steps:
- name: Install Qt with options and default aqtversion
Expand All @@ -70,6 +72,7 @@ jobs:
uses: turtlesec-no/get-ninja@main

- name: Make sure MSVC is found when Ninja generator is in use
if: ${{ runner.os == 'Windows' }}
uses: ilammy/msvc-dev-cmd@v1

- name: Configure project
Expand All @@ -79,6 +82,7 @@ jobs:
--warn-uninitialized
-Werror=dev
-DBUILD_SHARED_LIBS=${{ matrix.link_type == 'shared' }}
-DCMAKE_OSX_ARCHITECTURES="${{ matrix.config.macos_architectures }}"
- name: Build Project
run: cmake --build ./build

0 comments on commit 12ff98d

Please sign in to comment.