diff --git a/.github/workflows/pants.yaml b/.github/workflows/pants.yaml index 46e23cf5..eeed374d 100644 --- a/.github/workflows/pants.yaml +++ b/.github/workflows/pants.yaml @@ -38,7 +38,7 @@ jobs: sudo apt-get remove -y 'php.*' sudo apt-get remove -y '^mongodb-.*' sudo apt-get remove -y '^mysql-.*' - sudo apt-get remove -y azure-cli google-cloud-sdk google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri + sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri sudo apt-get autoremove -y sudo apt-get clean sudo rm -rf "$AGENT_TOOLSDIRECTORY" diff --git a/build-support/nuke-cache.sh b/build-support/nuke-cache.sh index a87b85a5..f62a6f6b 100755 --- a/build-support/nuke-cache.sh +++ b/build-support/nuke-cache.sh @@ -3,6 +3,7 @@ function nuke_if_too_big() { path=$1 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."