Skip to content

Commit b71ae4c

Browse files
committed
use sccache in ci/build_rust.sh
1 parent 9e6e380 commit b71ae4c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/build_rust.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,16 @@ set +eu
2525
conda activate rust
2626
set -eu
2727

28+
source rapids-configure-sccache
29+
2830
rapids-print-env
2931

32+
rapids-logger "Begin rust build"
33+
34+
sccache --stop-server 2>/dev/null || true
35+
36+
export SCCACHE_S3_KEY_PREFIX="cuvs-rs/$(uname -m)/cuda${RAPIDS_CUDA_VERSION%.*}"
37+
3038
# we need to set up LIBCLANG_PATH to allow rust bindgen to work,
3139
# grab it from the conda env
3240
LIBCLANG_PATH=$(dirname "$(find /opt/conda -name libclang.so | head -n 1)")
@@ -35,6 +43,8 @@ echo "LIBCLANG_PATH=$LIBCLANG_PATH"
3543

3644
bash ./build.sh rust
3745

46+
sccache --show-adv-stats
47+
3848
# Also test out that we can publish cuvs-sys via a dry-run
3949
pushd ./rust/cuvs-sys
4050
cargo publish --dry-run

0 commit comments

Comments
 (0)