Skip to content

Commit

Permalink
Fix the MacOS wheel build
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Dec 6, 2024
1 parent 617a2c8 commit 04d010b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
release:
types:
- created
pull_request:
branches: [main]

jobs:
build_wheels:
Expand Down Expand Up @@ -37,13 +39,11 @@ jobs:
toolchain: stable
override: true

- run: rustup target add x86_64-apple-darwin

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*
CIBW_ARCHS_LINUX: x86_64 i686
CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_WINDOWS: AMD64 x86
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_BEFORE_ALL_LINUX: |
Expand All @@ -66,6 +66,7 @@ jobs:
CIBW_BEFORE_ALL_WINDOWS: rustup target add i686-pc-windows-msvc
CIBW_BEFORE_BUILD: pip install setuptools-rust
CIBW_ENVIRONMENT: PATH="$HOME/.cargo/bin:$PATH"
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.12
CIBW_TEST_COMMAND: python -c "import outlines_core; print(outlines_core.__version__)"
CMAKE_PREFIX_PATH: ./dist

Expand Down

0 comments on commit 04d010b

Please sign in to comment.