From 971531da6f020eb5280bc159aa3c3e2f29133d04 Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Mon, 22 Mar 2021 17:17:19 +0000 Subject: [PATCH] Attempt to fix builds running out of disk space Looks like most builds on main are now running out of disk space when `chown`ing: https://github.com/dependabot/dependabot-core/runs/2168114315 This is a quick fix to try and get builds green but we should look into removing the need to chown files. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c210fece8a..8ce6789dab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,13 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + - name: Free up disk space + run: | + sudo apt autoremove --purge && sudo apt -y clean + docker system prune -af --volumes + sudo swapoff -a + sudo rm -f /swapfile + df -h - name: Prepare environment variables run: | echo "BRANCH_REF=$(echo '${{ github.ref }}' | sed -E 's/[^A-Za-z0-9]+/-/g')" >> $GITHUB_ENV