We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bc48ec commit 6009c8fCopy full SHA for 6009c8f
1 file changed
.github/workflows/ci.yml
@@ -42,6 +42,11 @@ jobs:
42
shell: pwsh
43
run: .\vcpkg\bootstrap-vcpkg.bat -disableMetrics
44
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
+
50
- name: Cache vcpkg packages
51
uses: actions/cache@v4
52
with:
@@ -57,9 +62,14 @@ jobs:
57
62
58
63
- name: Configure
59
64
run: |
65
+ EXTRA_ARGS=""
66
+ if [[ "$RUNNER_OS" == "macOS" ]]; then
67
+ EXTRA_ARGS="-DCMAKE_OSX_ARCHITECTURES=x86_64"
68
+ fi
60
69
cmake -S . -B build \
61
70
-DCMAKE_TOOLCHAIN_FILE="$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake" \
- -DCMAKE_BUILD_TYPE=Release
71
+ -DCMAKE_BUILD_TYPE=Release \
72
+ $EXTRA_ARGS
73
74
- name: Build
75
run: cmake --build build --config Release --parallel
0 commit comments