From 8f140485287adb8534d299ce553d15994ba1fab7 Mon Sep 17 00:00:00 2001 From: strawberry Date: Fri, 15 Nov 2024 23:48:55 -0500 Subject: [PATCH] ci: free up a bit of runner space safely (again) Signed-off-by: strawberry --- .github/workflows/ci.yml | 9 +++++++++ .github/workflows/documentation.yml | 10 ++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96a1188b6..9385c5e3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,15 @@ jobs: run: | sudo apt install liburing-dev -y + - name: Free up a bit of runner space + run: | + set +o pipefail + sudo docker image prune --all --force || true + sudo apt purge -y 'php.*' '^mongodb-.*' '^mysql-.*' azure-cli google-cloud-cli google-chrome-stable firefox powershell microsoft-edge-stable || true + sudo apt clean + sudo rm -v -rf /usr/local/games /usr/local/sqlpackage /usr/local/share/powershell /usr/local/share/edge_driver /usr/local/share/gecko_driver /usr/local/share/chromium /usr/local/share/chromedriver-linux64 /usr/lib/google-cloud-sdk /usr/lib/jvm /usr/lib/mono /usr/lib/heroku + set -o pipefail + - name: Sync repository uses: actions/checkout@v4 diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index ea720c43c..17b1f9c17 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -50,8 +50,14 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - - name: Free Disk Space (Ubuntu) - uses: jlumbroso/free-disk-space@main + - name: Free up a bit of runner space + run: | + set +o pipefail + sudo docker image prune --all --force || true + sudo apt purge -y 'php.*' '^mongodb-.*' '^mysql-.*' azure-cli google-cloud-cli google-chrome-stable firefox powershell microsoft-edge-stable || true + sudo apt clean + sudo rm -v -rf /usr/local/games /usr/local/sqlpackage /usr/local/share/powershell /usr/local/share/edge_driver /usr/local/share/gecko_driver /usr/local/share/chromium /usr/local/share/chromedriver-linux64 /usr/lib/google-cloud-sdk /usr/lib/jvm /usr/lib/mono /usr/lib/heroku + set -o pipefail - name: Sync repository uses: actions/checkout@v4