From 4f9dbe1680890a28a1d6b549250e66fc2c26ae9f Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Wed, 6 Mar 2024 15:39:30 -0500 Subject: [PATCH] fix: See if we can squeeze out some more room --- .github/workflows/pre-commit.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index ca4e043b..64df5f26 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -72,13 +72,29 @@ jobs: runs-on: ubuntu-latest needs: collectInputs steps: + - name: Largest files + run: du -aBM 2>/dev/null | sort -nr | head -n 50 | more + + - name: Largest packages + run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 40 + # https://github.com/orgs/community/discussions/25678#discussioncomment-5242449 - name: Delete huge unnecessary tools folder run: | + df -h rm -rf /opt/hostedtoolcache/CodeQL rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk rm -rf /opt/hostedtoolcache/Ruby rm -rf /opt/hostedtoolcache/go + # And a little bit more + # sudo apt-get remove -y '^ghc-8.*' + # sudo apt-get remove -y '^dotnet-.*' + # sudo apt-get remove -y '^llvm-.*' + # sudo apt-get remove -y 'php.*' + # sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel + # sudo apt-get autoremove -y + # sudo apt-get clean + df -h - name: Checkout uses: actions/checkout@v4