CI: Release only arm64 JS artifacts on macOS for now

Turns out vcpkg does not yet support Universal binaries. While they are
working on it, lets produce arm64 binaries only for now to unblock the
pipeline.
This commit is contained in:
Timothy Flynn 2024-06-09 22:07:42 -04:00 committed by Tim Flynn
parent e70886595a
commit 28927d6a0f
Notes: sideshowbarker 2024-07-17 01:12:07 +09:00

View file

@ -56,12 +56,14 @@ jobs:
env:
CCACHE_DIR: ${{ env.SERENITY_CCACHE_DIR }}
# FIXME: Add the following flag back when vcpkg supports Universal binaries:
# -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64"
#
# See: https://github.com/microsoft/vcpkg/discussions/19454
- name: Create build directory macOS
run: |
# Note: We are using Apple Clang to create Universal binary
cmake --preset CI -B Build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-DCMAKE_OSX_DEPLOYMENT_TARGET="11.0"
if: ${{ matrix.os == 'macos-14' }}
env: