Add sbf-tools version to cargo target cache name on CI agents

This commit is contained in:
Dmitri Makarov
2022-02-08 14:35:50 -08:00
committed by mergify[bot]
parent 869cfc9a1c
commit c7aa7fb66b
3 changed files with 28 additions and 1 deletions

View File

@@ -12,7 +12,8 @@ export PS4="++"
# Restore target/ from the previous CI build on this machine
#
eval "$(ci/channel-info.sh)"
export CARGO_TARGET_CACHE=$HOME/cargo-target-cache/"$CHANNEL"-"$BUILDKITE_LABEL"
eval "$(ci/sbf-tools-info.sh)"
export CARGO_TARGET_CACHE=$HOME/cargo-target-cache/"$CHANNEL"-"$BUILDKITE_LABEL"-"$SBF_TOOLS_VERSION"
(
set -x
MAX_CACHE_SIZE=18 # gigabytes