2018-06-30 21:51:15 -07:00
|
|
|
#!/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
|
2018-07-01 08:52:25 -07:00
|
|
|
rsync -a --delete --link-dest=$PWD target $d
|
2018-06-30 21:51:15 -07:00
|
|
|
du -hs $d
|
|
|
|
)
|