summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b34df2a..c544db7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -140,3 +140,38 @@ jobs:
if: ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) || matrix.cibw-only == 'cp310-manylinux_x86_64' }}
with:
path: ./wheelhouse/*.whl
+
+ build_wheels_macosx_arm64:
+ name: Build macOS arm64 wheels
+
+ runs-on: macos-14
+
+ steps:
+
+ - uses: actions/checkout@v4
+
+ - name: Use Python 3.11
+ uses: actions/setup-python@v5
+ with:
+ python-version: '3.11'
+
+ - name: Print build identifiers
+ run: |
+ python -m pip install cibuildwheel==2.17.0
+ CIBW_SKIP=cp38-macosx_arm64 python -m cibuildwheel --print-build-identifiers
+
+ - name: Build wheels
+ if: ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }}
+ uses: pypa/cibuildwheel@v2.17.0
+ env:
+ CIBW_SKIP: cp38-macosx_arm64
+
+ - name: Build wheels
+ if: ${{ !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }}
+ uses: pypa/cibuildwheel@v2.17.0
+ with:
+ only: cp310-macosx_arm64
+
+ - uses: actions/upload-artifact@v4
+ with:
+ path: ./wheelhouse/*.whl