Skip to content

Use macos-14 to build and test arm64 wheels #425

Use macos-14 to build and test arm64 wheels

Use macos-14 to build and test arm64 wheels #425

Workflow file for this run

name: Build Wheels
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheel on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, macos-12, macos-14]
steps:
- uses: actions/checkout@v3
- if: runner.os == 'macOS'
run: brew install pipx
- name: Build wheels
uses: pypa/cibuildwheel@v2.16.5
env:
CIBW_PRERELEASE_PYTHONS: True
CIBW_SKIP: pp*
CIBW_BEFORE_BUILD_MACOS: >
sudo chown -R runner:admin /usr/local/ &&
bash scripts/before_ci_build.sh
CIBW_BEFORE_BUILD: bash scripts/before_ci_build.sh
CIBW_TEST_EXTRAS: tests
CIBW_TEST_COMMAND: >
pytest {package}/test/ &&
python {package}/test_cython/runtests.py
CIBW_REPAIR_WHEEL_COMMAND_LINUX: >
bash scripts/repair_ci_wheel.sh {dest_dir} {wheel}
CIBW_REPAIR_WHEEL_COMMAND_MACOS: >
bash scripts/repair_ci_wheel.sh {dest_dir} {wheel} {delocate_archs}
- uses: actions/upload-artifact@v3
with:
name: wheels
path: ./wheelhouse