Skip to content

Add changes to support building arm64 macos wheels #149

Add changes to support building arm64 macos wheels

Add changes to support building arm64 macos wheels #149

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.toml, pyproject-tensorflow.toml]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install pipx
if: ${{ matrix.os == "macos-14" }}

Check failure on line 19 in .github/workflows/build-wheels-cibuildwheel.yml

View workflow run for this annotation

GitHub Actions / Build Python wheels (cibuildwheel)

Invalid workflow file

The workflow is not valid. .github/workflows/build-wheels-cibuildwheel.yml (Line: 19, Col: 13): Unexpected symbol: '"macos-14"'. Located at position 14 within expression: matrix.os == "macos-14"
run: brew install pipx
- 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 }}
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl