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

15 lines
245 B
Bash
Executable File

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