Files
solana/.buildkite/hooks/pre-command
2018-06-30 22:30:57 -07:00

14 lines
250 B
Bash
Executable File

#!/bin/bash -e
[[ -n "$CARGO_TARGET_CACHE_NAME" ]] || exit 0
#
# Restore target/ from the previous CI build on this machine
#
(
d=$HOME/cargo-target-cache/"$CARGO_TARGET_CACHE_NAME"
mkdir -p $d/target
set -x
rsync -a --delete $d/target .
)