From ba995a49ade4b784f3bd06242e6892c3d91f329e 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..bb55dce 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