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:
parent
5909b6d1e0
commit
12ff98db76
4
.github/workflows/cmake.yml
vendored
4
.github/workflows/cmake.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user