From 2f06c3bf0f28a73fe1732c2b6cff4f0238e50d5e Mon Sep 17 00:00:00 2001 From: Lucas Heitzmann Gabrielli Date: Fri, 29 Dec 2023 09:52:49 -0300 Subject: [PATCH] Install qhull from source in macOS Signed-off-by: Lucas Heitzmann Gabrielli --- .github/workflows/pypi-packages.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi-packages.yml b/.github/workflows/pypi-packages.yml index 7be33aec0..be898b17d 100644 --- a/.github/workflows/pypi-packages.yml +++ b/.github/workflows/pypi-packages.yml @@ -21,15 +21,20 @@ jobs: - uses: pypa/cibuildwheel@v2.16.2 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