Skip to content

Commit

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

chore: only buildkite ci use sccache
  • Loading branch information
yihau authored Aug 18, 2022
1 parent 5c9d612 commit d2d4d4a
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 d2d4d4a

Please sign in to comment.