Skip to content

Commit

Permalink
chore: only buildkite pipelines use sccache in docker-run.sh (backport
Browse files Browse the repository at this point in the history
…#27204) (#27227)

chore: only buildkite pipelines use sccache in docker-run.sh (#27204)

chore: only buildkite ci use sccache
(cherry picked from commit d2d4d4a)

Co-authored-by: Yihau Chen <[email protected]>
  • Loading branch information
mergify[bot] and yihau authored Aug 18, 2022
1 parent b7edbfe commit ae7a76c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ci/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,16 @@ 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
)
if [[ -n $BUILDKITE ]]; then
# 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
)
fi
else
# Avoid sharing ~/.cargo when building locally to avoid a mixed macOS/Linux
# ~/.cargo
Expand Down

0 comments on commit ae7a76c

Please sign in to comment.