Skip to content

Build wheels for Apple arm64 architecture #23

Build wheels for Apple arm64 architecture

Build wheels for Apple arm64 architecture #23

Workflow file for this run

name: Wheels
on: [push, pull_request]
jobs:
wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macOS-10.15]
arch: [auto]
include:
- os: windows-2016
cibw-arch: AMD64
cmake-generator: "Visual Studio 15 2017 Win64"
- os: windows-2016
cibw-arch: x86
cmake-generator: "Visual Studio 15 2017"
- os: ubuntu-20.04
arch: aarch64
- os: macos-13-xlarge
arch: arm64
steps:
- uses: actions/checkout@v2
# Used to host cibuildwheel
- uses: actions/setup-python@v2
- uses: docker/setup-qemu-action@v1
if: ${{ matrix.arch == 'aarch64' }}
name: Set up QEMU
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
env:
CIBW_ENVIRONMENT_WINDOWS: CMAKE_GENERATOR="${{ matrix.cmake-generator }}"
CIBW_ARCHS_WINDOWS: ${{ matrix.cibw-arch }}
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_SKIP: pp* *-musllinux_*
COMSPEC: C:\Program Files\PowerShell\7\pwsh.EXE
run: |
python -m cibuildwheel --output-dir wheelhouse python/
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
publish:
needs: wheels
name: Publish wheels to PyPI
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- name: Publish wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: artifact