From 3fa2f3b33ac32b1ad19b149c2c98db0813198582 Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko Date: Thu, 28 Sep 2023 13:44:58 +0300 Subject: [PATCH] add gha runner cleanup job --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 413b2288aa..181b4b47aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,6 +20,17 @@ jobs: - name: Install updates and protobuf-compiler run: sudo apt update && sudo apt install --assume-yes cmake protobuf-compiler + - name: Free space on the runner + run: | + df -h + sudo apt -y autoremove --purge + sudo apt -y autoclean + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + df -h + - name: Install stable toolchain uses: actions-rs/toolchain@v1 with: