From eaef42a6469e20928dead6efeb91c5ac90f1a5a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Louf?= Date: Thu, 5 Dec 2024 18:46:39 +0100 Subject: [PATCH] Fix the MacOS wheel build --- .github/workflows/release_pypi.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release_pypi.yaml b/.github/workflows/release_pypi.yaml index 0a678aa..94a41a3 100644 --- a/.github/workflows/release_pypi.yaml +++ b/.github/workflows/release_pypi.yaml @@ -4,6 +4,8 @@ on: release: types: - created + pull_request: + branches: [main] jobs: build_wheels: @@ -50,7 +52,7 @@ jobs: curl -sSf https://sh.rustup.rs | sh -s -- -y # From https://github.com/Intreecom/scyllapy/blob/05fdab32dd7468c26533de5fdfe9627fa3e38445/.github/workflows/release.yaml#L38 if command -v yum &> /dev/null; then - yum update -y && yum install -y perl-core openssl openssl-devel pkgconfig libatomic + yum update -y && yum install -y perl-core openssl openssl-devel libssl-dev pkgconfig libatomic # If we're running on i686 we need to symlink libatomic # in order to build openssl with -latomic flag. @@ -66,6 +68,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