Skip to content

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.buildplat[0] }}
strategy:
matrix:
buildplat:
# doing as cibuildwheel docs says leads to frankenstein arm builds on macos
# so lets be more explicit

Check failure on line 13 in .github/workflows/python.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/python.yml

Invalid workflow file

You have an error in your yaml syntax on line 13
- [ubuntu-latest, manylinux_x86_64, auto]
# - [ubuntu-latest, manylinux_aarch64, auto] # non-free on github
- [macos-latest, macosx_x86_64, x86_64]
- [macos-latest, macosx_arm64, arm64]
python: ["cp38", "cp39", "cp310", "cp11", "cp12"]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_ARCHS: ${{ matrix.buildplat[2] }}
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl
build-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build sdist
run: python setup.py sdist
- uses: actions/upload-artifact@v4
with:
name: sdist
path: dist