@@ -275,7 +275,7 @@ jobs:
275275 output-dir : ${{ env.CURRENT_BINDINGS_ARTIFACTS_DIR }}
276276 extras : uv
277277 python-path : ${{ steps.host-python.outputs.python-path }}
278- env :
278+ env : &bindings-wheel-env
279279 CIBW_BUILD : ${{ env.CIBW_BUILD }}
280280 # build[uv]: same PEP 517 orchestration, with uv instead of pip.
281281 # extras: uv puts uv on PATH (required on Windows).
@@ -644,39 +644,13 @@ jobs:
644644 output-dir : ${{ env.MAINTENANCE_BINDINGS_ARTIFACTS_DIR }}
645645 extras : uv
646646 python-path : ${{ steps.host-python.outputs.python-path }}
647- env :
648- CIBW_BUILD : ${{ env.CIBW_BUILD }}
649- # Use the same frontend and constraints as the current package.
650- CIBW_BUILD_FRONTEND : " build[uv]"
651- CIBW_ENVIRONMENT_LINUX : >
652- CUDA_PATH=/host/${{ env.CUDA_PATH }}
653- CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }}
654- UV_BUILD_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-bindings.txt
655- UV_CONSTRAINT=/host/${{ github.workspace }}/wheel-constraints/cuda-bindings.txt
656- CC="/host/${{ env.SCCACHE_PATH }} cc"
657- CXX="/host/${{ env.SCCACHE_PATH }} c++"
658- SCCACHE_GHA_ENABLED=true
659- ACTIONS_RUNTIME_TOKEN=${{ env.ACTIONS_RUNTIME_TOKEN }}
660- ACTIONS_RUNTIME_URL=${{ env.ACTIONS_RUNTIME_URL }}
661- ACTIONS_RESULTS_URL=${{ env.ACTIONS_RESULTS_URL }}
662- ACTIONS_CACHE_URL=${{ env.ACTIONS_CACHE_URL }}
663- ACTIONS_CACHE_SERVICE_V2=${{ env.ACTIONS_CACHE_SERVICE_V2 }}
664- CIBW_ENVIRONMENT_WINDOWS : >
665- CUDA_PATH="$(cygpath -w ${{ env.CUDA_PATH }})"
666- CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }}
667- UV_BUILD_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-bindings.txt)"
668- UV_CONSTRAINT="$(cygpath -w ./wheel-constraints/cuda-bindings.txt)"
669- # Dump sccache stats during repair; no dummy test stage.
670- CIBW_REPAIR_WHEEL_COMMAND_LINUX : >
671- "/host/${{ env.SCCACHE_PATH }}" --show-adv-stats &&
672- "/host/${{ env.SCCACHE_PATH }}" --show-stats --stats-format=json > /host/${{ github.workspace }}/sccache_bindings_maintenance.json &&
673- auditwheel repair -w {dest_dir} {wheel}
647+ env : *bindings-wheel-env
674648
675649 - name : Report sccache stats (cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }})
676650 if : ${{ !inputs.single-cuda-major && env.BUILD_BINDINGS_MAINTENANCE == 'true' && !startsWith(inputs.host-platform, 'win') }}
677651 uses : ./.github/actions/sccache-summary
678652 with :
679- json-file : sccache_bindings_maintenance .json
653+ json-file : sccache_bindings .json
680654 label : " cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }}"
681655 build-step : " Build cuda.bindings ${{ env.MAINTENANCE_CUDA_MAJOR }} wheel"
682656
0 commit comments