From ac0274bf19a0ba4b2e993615b5d951c051cd42ab Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 15 Jan 2026 05:56:58 +0000 Subject: [PATCH] ci: free up disk space before ROCm container build Add disk cleanup step to clear space before building the ROCm container to prevent out-of-disk-space errors during the build process. - Remove .NET framework files (~20-30GB) - Remove Android SDK (~10-15GB) - Remove GHC tooling (~5-10GB) - Remove CodeQL tools (~5-10GB) - Prune Docker system to remove unused images This cleanup runs only for the rocm platform build to minimize impact on other builds. fixes mostlygeek/llama-swap/actions/runs/21021128343 --- .github/workflows/containers.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/containers.yml b/.github/workflows/containers.yml index 7460c5c7..93a3c5d0 100644 --- a/.github/workflows/containers.yml +++ b/.github/workflows/containers.yml @@ -27,6 +27,19 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Free up disk space + if: matrix.platform == 'rocm' + 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: Log in to GitHub Container Registry uses: docker/login-action@v2 with: