aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2023-01-02 12:08:25 +0100
committerEike Ziller <eike.ziller@qt.io>2023-01-02 13:33:07 +0000
commit3a62cbfe1353df3e6450a744dbbd66ce6952d6e4 (patch)
treea4623bc5459e5ff64a7bd3807a4811a6ecbe0531 /.github
parentb3cb9573abae688b1964646b414c9fe960596545 (diff)
GitHub: Update deployment target and architectures on macOS
We only support macOS 10.14 with Qt Creator 9, and we do support Apple ARM for a while now. Change-Id: I27a1e95b7a338a45fe1e572bd2cd9cd96188f0dc Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build_cmake.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml
index c184d11..6810fa6 100644
--- a/.github/workflows/build_cmake.yml
+++ b/.github/workflows/build_cmake.yml
@@ -5,6 +5,7 @@ on: [push]
env:
PLUGIN_NAME: Haskell
QT_VERSION: 6.4.1
+ MACOS_DEPLOYMENT_TARGET: 10.14
QT_CREATOR_VERSION: 9.0.0
QT_CREATOR_SNAPSHOT: NO
CMAKE_VERSION: 3.21.1
@@ -202,7 +203,7 @@ jobs:
run: |
set(ENV{CC} ${{ matrix.config.cc }})
set(ENV{CXX} ${{ matrix.config.cxx }})
- set(ENV{MACOSX_DEPLOYMENT_TARGET} "10.13")
+ set(ENV{MACOSX_DEPLOYMENT_TARGET} "${{ env.MACOS_DEPLOYMENT_TARGET }}")
if ("${{ runner.os }}" STREQUAL "Windows" AND NOT "x${{ matrix.config.environment_script }}" STREQUAL "x")
execute_process(
@@ -227,6 +228,10 @@ jobs:
endif()
endforeach()
+ if("${{ runner.os }}" STREQUAL "macOS")
+ set(architecture_config "--add-config=-DCMAKE_OSX_ARCHITECTURES=x86_64\;arm64")
+ endif()
+
execute_process(
COMMAND python
-u
@@ -237,6 +242,7 @@ jobs:
--qt-path "${{ steps.qt.outputs.qt_dir }}"
--qtc-path "${{ steps.qt_creator.outputs.qtc_dir }}"
--output-path "$ENV{GITHUB_WORKSPACE}"
+ ${architecture_config}
RESULT_VARIABLE result
)
if (NOT result EQUAL 0)