Skip to content

ci: switch to cibuildwheel #3

ci: switch to cibuildwheel

ci: switch to cibuildwheel #3

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Build wheels
uses: pypa/[email protected]
- uses: actions/upload-artifact@v4
with:
name: build-wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl
build-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# - name: Verify tag matches version
# run: |
# set -ex
# version=$(grep -m 1 version pyproject.toml | grep -P '\d+\.\d+\.\d+' -o)
# tag="${GITHUB_REF/refs\/tags\/}"
# if [[ "v$version" != "$tag" ]]; then
# exit 1
# fi
- uses: actions/setup-python@v5
with:
python-version: 3.9
- run: |
python -m pip install -U pip setuptools build
- run: |
python -m build
- run: |
pip install dist/*.tar.gz
- uses: actions/upload-artifact@v4
with:
name: build-sdist
path: dist/*.tar.gz
download-artifacts:
runs-on: ubuntu-latest
needs: [build-sdist, build-wheels]
steps:
- uses: actions/download-artifact@v4
with:
path: dist
pattern: build-*
merge-multiple: true
- run: |
ls -lh dist/