From 0e385122b59a6d5fa030a7998ccb68239dcbb061 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 27 Nov 2025 13:33:13 -0800 Subject: [PATCH] Add free disk space step to container build workflows to prevent 'No space left on device' errors free space --- .github/workflows/container_release4.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/container_release4.yml b/.github/workflows/container_release4.yml index 8ddcfb429..5f33b821a 100644 --- a/.github/workflows/container_release4.yml +++ b/.github/workflows/container_release4.yml @@ -17,6 +17,18 @@ jobs: - name: Checkout uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v2 + - + name: Free Disk Space + run: | + echo "Before cleanup:" + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/ghc + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo docker system prune -af + echo "After cleanup:" + df -h - name: Docker meta id: docker_meta