This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
End of life notice (#195) #70
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 wheels | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build_wheels: | |
name: py${{ matrix.python-version }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# cibuildwheel builds linux wheels inside a manylinux container | |
# it also takes care of procuring the correct python version for us | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python-version: [36, 37, 38, 39, 310, 311] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.10.2 | |
env: | |
CIBW_BUILD: "cp${{ matrix.python-version }}-*" | |
CIBW_SKIP: "*-manylinux_i686 *-musllinux_i686 *-win32" | |
CIBW_ARCHS_MACOS: "x86_64 arm64" | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_BEFORE_TEST: pip install pytest | |
CIBW_TEST_COMMAND: pytest {package} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./wheelhouse/*.whl | |
build_wheels_aarch64: | |
name: py${{ matrix.python-version }} on ${{ matrix.os }} (aarch64) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# cibuildwheel builds linux wheels inside a manylinux container | |
# it also takes care of procuring the correct python version for us | |
os: [ubuntu-latest] | |
python-version: [36, 37, 38, 39, 310, 311] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup up QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: arm64 | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.10.2 | |
env: | |
CIBW_BUILD: "cp${{ matrix.python-version }}-*" | |
CIBW_ARCHS: aarch64 | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_BEFORE_TEST: pip install pytest | |
CIBW_TEST_COMMAND: pytest {package} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./wheelhouse/*.whl | |
build_sdist_python_wheel: | |
name: sdist and python wheel | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
name: Install Python | |
with: | |
python-version: "3.9" | |
- name: Run check-manifest | |
run: | | |
pip install check-manifest | |
check-manifest -v | |
- name: Build sdist and wheel | |
run: | | |
pip install --upgrade setuptools pip wheel | |
python setup.py sdist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: | | |
dist/*.tar.gz |