Build wheels for Python 3.13 #257
Workflow file for this run
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] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
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-13] | |
python-version: [38, 39, 310, 311, 312, 313] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pypa/[email protected] | |
env: | |
CIBW_BUILD: "cp${{ matrix.python-version}}-*" | |
CIBW_PRERELEASE_PYTHONS: True | |
- 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: | |
os: [ubuntu-latest] | |
python-version: [38, 39, 310, 311, 312, 313] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup up QEMU | |
uses: docker/setup-qemu-action@v3 | |
with: | |
platforms: arm64 | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_BUILD: "cp${{ matrix.python-version}}-*" | |
CIBW_ARCHS: aarch64 | |
CIBW_BUILD_VERBOSITY: 3 | |
# https://github.com/rust-lang/cargo/issues/10583 | |
CIBW_ENVIRONMENT_LINUX: PATH="$PATH:$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI=true | |
CIBW_PRERELEASE_PYTHONS: True | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./wheelhouse/*.whl | |
build_sdist: | |
name: sdist | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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 | |
run: | | |
pip install --upgrade build | |
python -m build --sdist | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./dist/*.tar.gz |