Skip to content

Commit

Permalink
Install qhull from source in macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Heitzmann Gabrielli <[email protected]>
  • Loading branch information
heitzmann committed Dec 29, 2023
1 parent c189796 commit 2f06c3b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/pypi-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,20 @@ jobs:
- uses: pypa/[email protected]
env:
CIBW_SKIP: "cp36-* cp37-* pp* *_ppc64le *_s390x"
CIBW_ARCHS_MACOS: "x86_64 universal2"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_BEFORE_ALL_LINUX: >
yum install -y wget || apk add qhull-dev;
wget https://github.com/qhull/qhull/archive/refs/tags/v8.0.2.tar.gz &&
tar -xf v8.0.2.tar.gz &&
cd qhull-8.0.2 &&
cmake -S . -B build &&
cmake -DBUILD_APPLICATIONS=OFF -S . -B build &&
cmake --build build --target install
CIBW_BEFORE_ALL_MACOS: >
wget https://github.com/qhull/qhull/archive/refs/tags/v8.0.2.tar.gz &&
tar -xf v8.0.2.tar.gz &&
cd qhull-8.0.2 &&
cmake -DCMAKE_OSX_ARCHITECTURES='x86_64;arm64' -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON -DBUILD_APPLICATIONS=OFF -S . -B build &&
cmake --build build --target install
CIBW_BEFORE_ALL_MACOS: brew install qhull
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/gdstk*.whl
Expand Down

0 comments on commit 2f06c3b

Please sign in to comment.