From 7fd5bbe5729723a8ac39cf5826458e56f2536b70 Mon Sep 17 00:00:00 2001 From: Ricardo Sanz Date: Mon, 25 Mar 2024 10:24:02 +0000 Subject: [PATCH] Issue #0: Max runner disk size hit, try to remove things See https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 --- .github/workflows/tests.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f9752ee..d37ad5e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,18 @@ jobs: runs-on: ubuntu-latest steps: + - name: Clean runner image + run: | + # Runner image is running out of space (14GB), let's try to remove some unused files. + # See https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 + echo "Before removing files:" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + echo "After removing files:" + df -h - name: Checkout repository uses: actions/checkout@v2