Skip to content

Commit 6009c8f

Browse files
committed
Fix CI workflow
1 parent 1bc48ec commit 6009c8f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
shell: pwsh
4343
run: .\vcpkg\bootstrap-vcpkg.bat -disableMetrics
4444

45+
# slick-net does not support arm64; force x64 on Apple Silicon runners.
46+
- name: Force x64 triplet (macOS)
47+
if: runner.os == 'macOS'
48+
run: echo "VCPKG_DEFAULT_TRIPLET=x64-osx" >> $GITHUB_ENV
49+
4550
- name: Cache vcpkg packages
4651
uses: actions/cache@v4
4752
with:
@@ -57,9 +62,14 @@ jobs:
5762
5863
- name: Configure
5964
run: |
65+
EXTRA_ARGS=""
66+
if [[ "$RUNNER_OS" == "macOS" ]]; then
67+
EXTRA_ARGS="-DCMAKE_OSX_ARCHITECTURES=x86_64"
68+
fi
6069
cmake -S . -B build \
6170
-DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" \
62-
-DCMAKE_BUILD_TYPE=Release
71+
-DCMAKE_BUILD_TYPE=Release \
72+
$EXTRA_ARGS
6373
6474
- name: Build
6575
run: cmake --build build --config Release --parallel

0 commit comments

Comments
 (0)