Skip to content

Commit 483a38a

Browse files
committed
enable sccache-dist in java jobs
1 parent 85f79a3 commit 483a38a

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
artifact-name: "cuvs-java-cuda${{ matrix.cuda_version }}"
132132
file_to_upload: "java/cuvs-java/target/"
133133
sha: ${{ inputs.sha }}
134+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
134135
python-build:
135136
needs: [cpp-build]
136137
secrets: inherit

.github/workflows/pr.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ jobs:
239239
script: "ci/test_java.sh"
240240
artifact-name: "cuvs-java-cuda${{ matrix.cuda_version }}"
241241
file_to_upload: "java/cuvs-java/target/"
242+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
242243
rust-build:
243244
needs: [conda-cpp-build, changed-files]
244245
secrets: inherit

.github/workflows/test.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
arch: "amd64"
7373
container_image: "rapidsai/ci-conda:25.12-cuda${{ matrix.cuda_version }}-ubuntu24.04-py3.13"
7474
script: "ci/test_java.sh"
75+
sccache-dist-token-secret-name: GIST_REPO_READ_ORG_GITHUB_TOKEN
7576
wheel-tests-cuvs:
7677
secrets: inherit
7778
uses: rapidsai/shared-workflows/.github/workflows/wheels-test.yaml@release/25.12

ci/build_java.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
set -euo pipefail
66

7+
source rapids-configure-sccache
8+
9+
export SCCACHE_S3_KEY_PREFIX="cuvs-java/${RAPIDS_CONDA_ARCH}/cuda${RAPIDS_CUDA_VERSION%%.*}/maven/objects-cache"
10+
export SCCACHE_S3_PREPROCESSOR_CACHE_KEY_PREFIX="cuvs-java/${RAPIDS_CONDA_ARCH}/cuda${RAPIDS_CUDA_VERSION%%.*}/maven/preprocessor-cache"
11+
export SCCACHE_S3_USE_PREPROCESSOR_CACHE_MODE=true
12+
713
# TODO: Remove this argument-handling when build and test workflows are separated,
814
# and test_java.sh no longer calls build_java.sh
915
# ref: https://github.com/rapidsai/cuvs/issues/868
@@ -49,5 +55,8 @@ export RAPIDS_CUDA_MAJOR
4955

5056
bash ./build.sh java "${EXTRA_BUILD_ARGS[@]}"
5157

58+
sccache --show-adv-stats
59+
sccache --stop-server >/dev/null 2>&1 || true
60+
5261
rapids-logger "Test script exiting with value: $EXITCODE"
5362
exit ${EXITCODE}

0 commit comments

Comments
 (0)