From f7ebaa76badb46a0bf4dfcc57ac3c6e98f5d3733 Mon Sep 17 00:00:00 2001 From: Yihau Chen Date: Tue, 26 Jul 2022 01:22:15 +0800 Subject: [PATCH] chore: only ci use sccache (#26774) --- ci/docker-run.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ci/docker-run.sh b/ci/docker-run.sh index 542b2f0429..e154de2eef 100755 --- a/ci/docker-run.sh +++ b/ci/docker-run.sh @@ -44,6 +44,15 @@ ARGS=( if [[ -n $CI ]]; then # Share the real ~/.cargo between docker containers in CI for speed ARGS+=(--volume "$HOME:/home") + + # sccache + ARGS+=( + --env "RUSTC_WRAPPER=/home/.cargo/bin/sccache" + --env AWS_ACCESS_KEY_ID + --env AWS_SECRET_ACCESS_KEY + --env SCCACHE_BUCKET + --env SCCACHE_REGION + ) else # Avoid sharing ~/.cargo when building locally to avoid a mixed macOS/Linux # ~/.cargo @@ -83,15 +92,6 @@ ARGS+=( --env CRATES_IO_TOKEN ) -# sccache -ARGS+=( - --env "RUSTC_WRAPPER=/home/.cargo/bin/sccache" - --env AWS_ACCESS_KEY_ID - --env AWS_SECRET_ACCESS_KEY - --env SCCACHE_BUCKET - --env SCCACHE_REGION -) - # Also propagate environment variables needed for codecov # https://docs.codecov.io/docs/testing-with-docker#section-codecov-inside-docker # We normalize CI to `1`; but codecov expects it to be `true` to detect Buildkite...