Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the MacOS wheel build #104

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@ 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_SKIP: "*musllinux*"
CIBW_ARCHS_LINUX: x86_64
CIBW_ARCHS_WINDOWS: AMD64 x86
CIBW_ARCHS_MACOS: x86_64 arm64
CIBW_BEFORE_ALL_LINUX: |
Expand All @@ -66,6 +65,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
4 changes: 2 additions & 2 deletions .github/workflows/release_rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ jobs:
- name: Check Cargo.toml version matches Release tag
run: |
CARGO_VERSION=$(grep '^version =' Cargo.toml | sed 's/.*"\(.*\)".*/\1/')
if [ "${GITHUB_REF#refs/tags/v}" != "$CARGO_VERSION" ]; then
echo "Version mismatch: Cargo.toml ($CARGO_VERSION) doesn't match Release tag (${GITHUB_REF#refs/tags/v})"
if [ "${GITHUB_REF#refs/tags/}" != "$CARGO_VERSION" ]; then
echo "Version mismatch: Cargo.toml ($CARGO_VERSION) doesn't match Release tag (${GITHUB_REF#refs/tags/})"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "outlines-core"
version = "0.1.19"
version = "0.1.20"
edition = "2021"
description = "Structured Generation"
license = "Apache-2.0"
Expand Down
Loading