From 3a62cbfe1353df3e6450a744dbbd66ce6952d6e4 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Mon, 2 Jan 2023 12:08:25 +0100 Subject: 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 --- .github/workflows/build_cmake.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to '.github') 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) -- cgit v1.2.3