Skip to content

Commit

Permalink
fix: Explicitly set macOS CI build architecture for C bindings (#406)
Browse files Browse the repository at this point in the history
  • Loading branch information
bruvzg committed May 11, 2024
1 parent 928e11d commit 64857e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/c-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
path: macos/arm64
- os: macOS-latest
target: x86_64-apple-darwin
cmake-options: -DCMAKE_OSX_ARCHITECTURES=x86_64
path: macos/x86_64
- os: windows-2019
target: aarch64-pc-windows-msvc
Expand Down
2 changes: 2 additions & 0 deletions bindings/c/accesskit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ if (APPLE)
set(_accesskit_os "macos")
if (CMAKE_OSX_ARCHITECTURES MATCHES "(ARM64|arm64|aarch64)")
set(_accesskit_arch "arm64")
elseif (CMAKE_OSX_ARCHITECTURES MATCHES "(AMD64|amd64|x86_64)")
set(_accesskit_arch "x86_64")
endif()
elseif (UNIX)
set(_accesskit_os "linux")
Expand Down

0 comments on commit 64857e8

Please sign in to comment.