Skip to content

Commit

Permalink
CI: Setup additional CMake flags
Browse files Browse the repository at this point in the history
- Add additional_cmake_flags to pass runner-specific CMake flags
- Add -DCMAKE_APPLE_SILICON_PROCESSOR=x86_64 for macOS Intel runner

Signed-off-by: Avery King <[email protected]>
  • Loading branch information
Avery King committed Sep 1, 2024
1 parent 7369c7d commit a64ff0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cmake_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
compiler_cache_path: ~/Library/Caches/ccache
vcpkg_binary_cache: ~/.cache/vcpkg
vcpkg_triplet: arm64-osx-dynamic
additional_cmake_flags: -DCMAKE_APPLE_SILICON_PROCESSOR="x86_64"

# Windows (x86) config
- name: Windows_32bit
Expand Down Expand Up @@ -169,6 +170,7 @@ jobs:
-D SBSMS=ON
-S .
-B build
"${{ matrix.config.additional_cmake_flags }}"
env:
# Apple code signing
APPLE_CODESIGN_IDENTITY: ${{ secrets.APPLE_CODESIGN_IDENTITY }}
Expand Down

0 comments on commit a64ff0c

Please sign in to comment.