Skip to content

Commit

Permalink
Fix up osx-arm64 wheel (#224)
Browse files Browse the repository at this point in the history
* build libspatialindex with MACOS archs

* no universal2 for cmake
  • Loading branch information
hobu authored Feb 22, 2022
1 parent 1caba8a commit aecb530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
MACOSX_DEPLOYMENT_TARGET: 10.9
CIBW_BUILD_VERBOSITY_MACOS: 3
CIBW_TEST_SKIP: "*-macosx_arm64 *-macosx_universal2:arm64"
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: ""
CIBW_BEFORE_BUILD_LINUX: "pip install cmake; bash {project}/ci/install_libspatialindex.bash"
strategy:
Expand Down
2 changes: 1 addition & 1 deletion ci/install_libspatialindex.bash
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ cd build

cp "${SL}/CMakeLists.txt" ..

cmake -DCMAKE_BUILD_TYPE=Release ..
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES="${CIBW_ARCHS_MACOS/ /;}" ..
make -j 4

# copy built libraries relative to path of this script
Expand Down

0 comments on commit aecb530

Please sign in to comment.