Skip to content

Commit

Permalink
Build C++ libs in separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
makaimann committed Feb 18, 2025
1 parent b326e67 commit e9389fc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ jobs:
wheel
echo "$PWD/.venv/bin" >> $GITHUB_PATH
- name: Build C++ libraries
run: |
bash ./ci-scripts/cibw_before_build.sh
env:
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }}

- name: Build wheels
uses: pypa/cibuildwheel@v2.16.2
with:
Expand All @@ -89,8 +95,6 @@ jobs:
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-*"
CIBW_SKIP: "*-win32 *-win_amd64 *-win_arm64 *-musllinux_*"
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
CIBW_BEFORE_ALL_LINUX: bash ./ci-scripts/cibw_before_build.sh
CIBW_BEFORE_ALL_MACOS: bash ./ci-scripts/cibw_before_build.sh
CIBW_ENVIRONMENT_MACOS: >
DYLD_LIBRARY_PATH="$(pwd)/install/lib:$DYLD_LIBRARY_PATH"
MACOSX_DEPLOYMENT_TARGET=${{ matrix.macos-target }}
Expand Down

0 comments on commit e9389fc

Please sign in to comment.