Skip to content

Commit

Permalink
chore: only buildkite pipelines use sccache in docker-run.sh (#27204)
Browse files Browse the repository at this point in the history
chore: only buildkite ci use sccache
(cherry picked from commit d2d4d4a)
  • Loading branch information
yihau authored and mergify[bot] committed Aug 18, 2022
1 parent b7edbfe commit dcb9c2e
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 dcb9c2e

Please sign in to comment.