Skip to content

Commit b7b5118

Browse files
MelodicsPavolCarel Combrink
authored and
Carel Combrink
committed
Build Universal macOS Binary
1 parent f41661e commit b7b5118

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -296,14 +296,18 @@ jobs:
296296
"macOS" {
297297
# From the build.py script: on macOS the prefix path must be inside the app bundle...
298298
${prefix_extra}=";${{ steps.qt_creator.outputs.qtc_dir }}/Qt Creator.app/Contents/Resources"
299+
300+
# Universal macOS Binaries (experimental feature)
301+
# https://docs.conan.io/2/reference/tools/cmake/cmaketoolchain.html#support-for-universal-binaries-in-macos
302+
${arch_override}="-s=arch=armv8|x86_64"
299303
}
300304
}
301305
302306
Set-Location -Path "SpellChecker-Plugin"
303307
304308
conan profile detect
305309
conan config install .conan
306-
conan install . -pr cpp20 --build=missing
310+
conan install . -pr cpp20 --build=missing ${arch_override}
307311
308312
cmake --preset "${env:CMAKE_PRESET}" `
309313
-DCMAKE_PREFIX_PATH="${{ steps.qt.outputs.qt_dir }};${{ steps.qt_creator.outputs.qtc_dir }}${prefix_extra}" `

0 commit comments

Comments
 (0)