From 722171167ba876104f032017e4084501115dfc23 Mon Sep 17 00:00:00 2001 From: Josh Meyers Date: Mon, 29 Apr 2024 11:38:05 -0700 Subject: [PATCH] mac arm/x86 wheel test --- .github/workflows/wheeltest.yml | 35 +++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheeltest.yml b/.github/workflows/wheeltest.yml index f2083849..602bed40 100644 --- a/.github/workflows/wheeltest.yml +++ b/.github/workflows/wheeltest.yml @@ -64,7 +64,38 @@ jobs: name: musllinux-artifacts path: ./wheelhouse/*.whl - build_macosx_wheels: + # X86 Mac OS + build_macosx_x86_wheels: + name: Build wheels on macosx + runs-on: macos-13 + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-python@v5 + + - name: Install cibuildwheel + run: python -m pip install cibuildwheel==2.16.5 + + - name: Build wheels + run: python -m cibuildwheel --output-dir wheelhouse + env: + CIBW_BUILD: "*macosx*" + # CIBW_SKIP: cp36* cp37* pp* + CIBW_SKIP: cp36* cp37* cp38* cp39* cp310* cp311* pp* + CIBW_BUILD_VERBOSITY: 3 + CIBW_BEFORE_BUILD: pip install -U pybind11-global && brew install libomp fftw eigen + CIBW_BEFORE_TEST: pip install -U pytest pytest-timeout pytest-cov pytest-xdist + CIBW_TEST_COMMAND: pytest --skip_gha {package}/tests + + - uses: actions/upload-artifact@v4 + with: + name: macosx-artifacts + path: ./wheelhouse/*.whl + + # ARM Mac OS + build_macosx_arm_wheels: name: Build wheels on macosx runs-on: macos-latest steps: @@ -95,7 +126,7 @@ jobs: merge_wheels: name: Merge wheels - needs: [build_many_wheels, build_musl_wheels, build_macosx_wheels] + needs: [build_many_wheels, build_musl_wheels, build_macosx_x86_wheels, build_macosx_arm_wheels] runs-on: ubuntu-latest steps: - name: Merge wheels