Skip to content

Commit e71bd51

Browse files
Fix CI build failures for GPU and macOS wheels
- Add CMAKE_PREFIX_PATH=$CONDA_PREFIX to GPU wheel_build tasks in pixi.toml to ensure CMake can find pybind11 and other dependencies - Add CIBW_ENVIRONMENT_MACOS and CIBW_ENVIRONMENT_WINDOWS to cibuildwheel.yml to pass CMAKE_PREFIX_PATH with absolute path to pixi environment
1 parent 6251e6a commit e71bd51

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
- name: Build wheels
5959
uses: pypa/cibuildwheel@v2.22.0
6060
# Configuration is in pyproject.toml (generated from pyproject-pypi.toml.j2)
61+
env:
62+
# Override environment for macOS/Windows to use absolute path
63+
CIBW_ENVIRONMENT_MACOS: CMAKE_PREFIX_PATH=${{ github.workspace }}/.pixi/envs/default MOMENTUM_BUILD_WITH_FBXSDK=OFF
64+
CIBW_ENVIRONMENT_WINDOWS: CMAKE_PREFIX_PATH=${{ github.workspace }}/.pixi/envs/default MOMENTUM_BUILD_WITH_FBXSDK=OFF
6165

6266
- uses: actions/upload-artifact@v4
6367
with:

pixi.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ wheel_build = { cmd = """
498498
python -c "import os, shutil; os.makedirs('.tmp', exist_ok=True); shutil.copy('pyproject.toml', '.tmp/pyproject-backup.toml'); shutil.copy('pyproject-pypi-gpu.toml', 'pyproject.toml')" && \
499499
pip wheel . --no-deps --no-build-isolation --wheel-dir=dist && \
500500
python -c "import shutil; shutil.move('.tmp/pyproject-backup.toml', 'pyproject.toml')"
501-
""", depends-on = [
501+
""", env = { CMAKE_PREFIX_PATH = "$CONDA_PREFIX" }, depends-on = [
502502
"generate_pyproject",
503503
], description = "Build GPU wheel for current Python version" }
504504

@@ -527,7 +527,7 @@ wheel_build = { cmd = """
527527
python -c "import os, shutil; os.makedirs('.tmp', exist_ok=True); shutil.copy('pyproject.toml', '.tmp/pyproject-backup.toml'); shutil.copy('pyproject-pypi-gpu.toml', 'pyproject.toml')" && \
528528
pip wheel . --no-deps --no-build-isolation --wheel-dir=dist && \
529529
python -c "import shutil; shutil.move('.tmp/pyproject-backup.toml', 'pyproject.toml')"
530-
""", depends-on = [
530+
""", env = { CMAKE_PREFIX_PATH = "$CONDA_PREFIX" }, depends-on = [
531531
"generate_pyproject",
532532
], description = "Build GPU wheel for current Python version" }
533533

0 commit comments

Comments
 (0)