diff options
| author | Eike Ziller <eike.ziller@qt.io> | 2022-03-25 11:14:54 +0100 |
|---|---|---|
| committer | Eike Ziller <eike.ziller@qt.io> | 2022-03-31 08:38:46 +0000 |
| commit | 3abbe2e1ba36dc2a6aa0c0e9afa8210392505e69 (patch) | |
| tree | e4e62e8d294f68ba524ae47edac71d12437f1723 | |
| parent | e97069ab25b0c4d9f8dde05a53fe2eb56a3b076b (diff) | |
GitHub: Create universal binaries on macOS7.0
Change-Id: I52d6490826cf00ed0e7c18525150f717e89c9416
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
| -rw-r--r-- | .github/workflows/build_cmake.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 9e95ce7..7431826 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -217,6 +217,10 @@ jobs: endforeach() endif() + if ("${{ runner.os }}" STREQUAL "macOS") + set(ADDITIONAL_BUILD_ARGS "--add-config=-DCMAKE_OSX_ARCHITECTURES=x86_64\;arm64") + endif() + set(ENV{NINJA_STATUS} "[%f/%t %o/sec] ") set(build_plugin_py "scripts/build_plugin.py") @@ -237,6 +241,7 @@ jobs: --qt-path "${{ steps.qt.outputs.qt_dir }}" --qtc-path "${{ steps.qt_creator.outputs.qtc_dir }}" --output-path "$ENV{GITHUB_WORKSPACE}" + ${ADDITIONAL_BUILD_ARGS} RESULT_VARIABLE result ) if (NOT result EQUAL 0) |
