Skip to content

Merge pull request #1440 from dhunstack/workflowversion #261

Merge pull request #1440 from dhunstack/workflowversion

Merge pull request #1440 from dhunstack/workflowversion #261

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/[email protected]
with:
config-file: ${{ matrix.config }}.toml
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: artifact-${{ matrix.os }}-${{ matrix.config }}