Add changes to support building arm64 macos wheels #148
Workflow file for this run
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.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 GitHub Actions / Build Python wheels (cibuildwheel)Invalid workflow file
|
||
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/cibuildwheel@v2.11.4 | ||
with: | ||
config-file: ${{ matrix.config }} | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl |