From 46bfcfaf64a2e0a8056a9bbfa7cb4a7d2d6e281b Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 17 Dec 2024 11:06:16 -0800 Subject: [PATCH] fewer builds, fix libraft downloads --- .github/workflows/build.yaml | 4 +++- .github/workflows/pr.yaml | 2 ++ ci/build_wheel_pylibraft.sh | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index eeb6ac8f24..bce27e9eb7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -74,7 +74,9 @@ jobs: branch: ${{ inputs.branch }} sha: ${{ inputs.sha }} date: ${{ inputs.date }} - script: ci/build_wheel_libcugraph.sh + script: ci/build_wheel_libraft.sh + # build for every combination of arch and CUDA version, but only for the latest Python + matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber))) wheel-publish-libraft: needs: wheel-publish-libcugraph secrets: inherit diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 9f0f8dbdce..d91fc82178 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -114,6 +114,8 @@ jobs: sha: ${{ inputs.sha }} date: ${{ inputs.date }} script: ci/build_wheel_libraft.sh + # build for every combination of arch and CUDA version, but only for the latest Python + matrix_filter: group_by([.ARCH, (.CUDA_VER|split(".")|map(tonumber)|.[0])]) | map(max_by(.PY_VER|split(".")|map(tonumber))) wheel-build-pylibraft: needs: [checks, wheel-build-libraft] secrets: inherit diff --git a/ci/build_wheel_pylibraft.sh b/ci/build_wheel_pylibraft.sh index f20d88f2f4..b8da15ffaf 100755 --- a/ci/build_wheel_pylibraft.sh +++ b/ci/build_wheel_pylibraft.sh @@ -5,6 +5,8 @@ set -euo pipefail package_dir="python/pylibraft" +RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" + # Downloads libraft wheels from this current build, # then ensures 'pylibraft' wheel builds always use the 'libraft' just built in the same CI run. #