Skip to content

Commit

Permalink
specifying cache paths explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkahan committed Feb 1, 2024
1 parent a1fef4e commit e94e08c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ jobs:
- name: Delete cache if too big
run: |
source delete_cache_if_too_big.sh
delete_cache_if_too_big ~/.cache/nce 512
delete_cache_if_too_big ~/.cache/pants/named_caches 1024
delete_cache_if_too_big /home/runner/work/_temp/_github_home/.cache/nce 512
delete_cache_if_too_big /home/runner/work/_temp/_github_home/.cache/pants/named_caches 1024
2 changes: 1 addition & 1 deletion delete_cache_if_too_big.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ function delete_cache_if_too_big() {
limit_mb=$2
size_mb=$(du -m -d0 "${path}" | cut -f 1)
if (( size_mb > limit_mb )); then
echo "${path} is too large (${size_mb}mb), nuking it."
echo "${path} is too large (${size_mb}mb), deleting it."
rm -rf "${path}"
fi
}

0 comments on commit e94e08c

Please sign in to comment.