1
0
mirror of https://github.com/QtExcel/QXlsx.git synced 2025-01-30 05:02:52 +08:00

Fix GitHub CI as it now uses AppleSilicon HW

Qt5 open source only supports x86_64 builds
on macOS, this makes sure we build for the
available archtecture.
This commit is contained in:
Daniel Nicoletti 2024-07-04 10:03:47 -03:00
parent 5909b6d1e0
commit 12ff98db76

View File

@ -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
@ -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
@ -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