Skip to content

Add changes to support building arm64 macos wheels #118

Add changes to support building arm64 macos wheels

Add changes to support building arm64 macos wheels #118

name: Build Python wheels (cibuildwheel)
on: [push, pull_request]
jobs:
build_wheels:
name: ${{ matrix.os }} / ${{ matrix.config }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11]
config: [pyproject.toml]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch release tags from GitHub
# Workaround for https://github.com/actions/checkout/issues/290
run: git fetch --tags --force
- name: Build wheels
uses: pypa/[email protected]
with:
config-file: ${{ matrix.config }}
env:
CIBW_ARCHS_MACOS: arm64
CIBW_SKIP: cp38-macosx_*
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl