Skip to content

[pre-commit.ci] pre-commit autoupdate (#466) #493

[pre-commit.ci] pre-commit autoupdate (#466)

[pre-commit.ci] pre-commit autoupdate (#466) #493

Workflow file for this run

name: Build wheels
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-22.04
- windows-2022
- macos-12
env:
CIBW_ARCHS_LINUX: x86_64 i686 aarch64
CIBW_ARCHS_MACOS: x86_64 universal2
CIBW_ARCHS_WINDOWS: AMD64 x86 ARM64
CIBW_BUILD: "cp37-* cp38-* cp39-* cp310-* cp311-* cp312-*"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==2.17.0
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Build wheels
run: |
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: '${{ github.workspace }}/wheelhouse/*.whl'