From 7202a4317dd906451a46c3462532a04db9c3300f Mon Sep 17 00:00:00 2001 From: NiccoloN Date: Fri, 6 Mar 2026 15:44:23 +0100 Subject: [PATCH] add free disk space step to CI --- .github/workflows/validate_operations.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/validate_operations.yml b/.github/workflows/validate_operations.yml index 18d93ad..afd9965 100644 --- a/.github/workflows/validate_operations.yml +++ b/.github/workflows/validate_operations.yml @@ -29,6 +29,29 @@ jobs: runs-on: ubuntu-latest steps: + - name: Free disk space + if: runner.os == 'Linux' + run: | + df -h + sudo apt-get remove -y '^dotnet-.*' + sudo apt-get remove -y '^llvm-.*' + sudo apt-get remove -y 'php.*' + sudo apt-get remove -y '^mongodb-.*' + sudo apt-get remove -y '^mysql-.*' + sudo apt-get remove -y azure-cli google-cloud-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri + sudo apt-get autoremove -y + sudo apt-get clean + df -h + sudo rm -rf /usr/local/lib/android || true + sudo rm -rf /usr/share/dotnet || true + sudo rm -rf /opt/ghc || true + sudo rm -rf /usr/local/.ghcup || true + sudo rm -rf /opt/hostedtoolcache/CodeQL || true + sudo docker system prune --all --volumes --force + sudo apt-get clean + sudo rm -rf /var/lib/apt/lists/* + df -h + - name: Checkout repository uses: actions/checkout@v4 with: