Skip to content

Commit

Permalink
ci: add SCCACHE_S3_KEY_PREFIX (#30652)
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau authored Mar 9, 2023
1 parent 11e554b commit 755a9a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

eval "$(ejson2env .buildkite/env/secrets.ejson)"
# eval "$(ejson2env .buildkite/env/secrets.ejson)"

# Ensure the pattern "+++ ..." never occurs when |set -x| is set, as buildkite
# interprets this as the start of a log group.
Expand All @@ -18,4 +18,9 @@ HOST_RUST_VERSION="$rust_stable"
pattern='^[0-9]+\.[0-9]+\.[0-9]+$'
if [[ ${HOST_RUST_VERSION} =~ ${pattern} ]]; then
HOST_RUST_VERSION="${rust_stable%.*}"
fi
fi

export SBF_TOOLS_VERSION

SCCACHE_S3_KEY_PREFIX="${rust_stable}_${rust_nightly}_${SBF_TOOLS_VERSION}"
export SCCACHE_S3_KEY_PREFIX
1 change: 1 addition & 0 deletions ci/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ if [[ -n $CI ]]; then
--env AWS_SECRET_ACCESS_KEY
--env SCCACHE_BUCKET
--env SCCACHE_REGION
--env SCCACHE_S3_KEY_PREFIX
)
fi
fi
Expand Down

0 comments on commit 755a9a6

Please sign in to comment.