diff --git a/scripts/test.sh b/scripts/test.sh index c88b374..ece78b1 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash set -euo pipefail +# Reclaim age-expired build/test caches before building. No-op when the shared +# helper is not installed, so CI and other machines are unaffected. +command -v disk-clean >/dev/null 2>&1 && disk-clean || true + echo "=== fmt ===" cargo fmt --all