(self-hosted) Build and Test Apple Silicon wheels #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test Apple Silicon wheels | |
on: workflow_dispatch | |
jobs: | |
build_wheels: | |
runs-on: [self-hosted, macOS, ARM64] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade nox | |
python -m pip install cibuildwheel==2.15.0 | |
- name: Build wheels | |
run: python -m cibuildwheel --output-dir wheelhouse | |
# to supply options, put them in 'env', like: | |
env: | |
CIBW_BUILD: cp39-macosx_arm64 cp310-macosx_arm64 cp311-macosx_arm64 | |
CIBW_ARCHS: arm64 | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_TEST_COMMAND: "pytest {project}/tests" | |
- name: Build wheels | |
run: python -m nox --sessions test_wheel | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl |