bump dependencies, overhaul build action #1
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: Test Build | |
# Run on the main branch and on tags (note conditional below) | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build_wheels: | |
# Only run if the commit message contains '[ci build]' | |
if: "contains(toJSON(github.event.commits.*.message), '[ci build]') || contains(toJSON(github.event.pull_request.title), '[ci build]')" | |
strategy: | |
fail-fast: false | |
matrix: | |
# macos-13 is an intel runner, macos-14 is apple silicon | |
os: [ubuntu-latest, windows-latest, macos-13, macos-14] | |
name: Build wheels ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Package source distribution | |
if: runner.os == 'Linux' | |
run: | | |
python -m pip install build | |
python -m build --sdist | |
- name: Run cibuildwheel | |
uses: pypa/[email protected] | |
with: | |
config-file: ".github/workflows/cibuildwheel_config.toml" | |
# Upload binaries to the github artifact store | |
- name: Upload wheels | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cibw-wheels-${{ matrix.os }} | |
path: | | |
./wheelhouse/*.whl | |
./wheelhouse/*.tar.gz | |
overwrite: true |