Skip to content

Commit

Permalink
Build universal wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Sep 29, 2024
1 parent 0efefde commit b6b6bd6
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,24 @@ on:
- 'prerelease-v[0-9]+.[0-9]+.[0-9]+**'
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# macos-13 is an intel runner, macos-14 is apple silicon
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
name: Build universal wheel
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
# aarch64 (arm) is built via qemu emulation
# QEMU is sadly too slow. We need to wait for public ARM support
#- name: Set up QEMU
# if: runner.os == 'Linux'
# uses: docker/setup-qemu-action@v3
# with:
# platforms: all
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS_LINUX: auto
- name: Configure Python version
uses: actions/setup-python@v4
with:
package-dir: .
output-dir: wheelhouse
config-file: "{package}/pyproject.toml"
python-version: "3.11"
architecture: x64
- name: Build wheels
run: |
python -m pip install wheel
python -m pip wheel . -w ./wheelhouse
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
name: cibw-wheel-pure
path: wheelhouse/spacy_curated_transformers-*.whl

build_sdist:
name: Build source distribution
Expand Down

0 comments on commit b6b6bd6

Please sign in to comment.