Immediately exist on any fail in the doc build script #262
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 Python wheels (cibuildwheel) | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: ${{ matrix.os }} / ${{ matrix.config }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-20.04, macos-12, macos-14] | |
config: [pyproject, pyproject-tensorflow] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Fetch release tags from GitHub | |
# Workaround for https://github.com/actions/checkout/issues/290 | |
run: git fetch --tags --force | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.16.5 | |
with: | |
config-file: ${{ matrix.config }}.toml | |
- uses: actions/upload-artifact@v4 | |
with: | |
path: ./wheelhouse/*.whl | |
name: artifact-${{ matrix.os }}-${{ matrix.config }} |