ci: use enhanced cleanup action in release workflow

In this commit, we replace the basic inline cleanup command in the release
workflow with the comprehensive cleanup-space action that was previously
only used in the main CI workflow. The previous release workflow cleanup
simply removed the hostedtoolcache directory, which freed only a few
gigabytes and proved insufficient for multi-platform release builds.

By switching to the cleanup-space action (now enhanced to free 20-25GB),
the release workflow will have substantially more disk space available
before beginning the build process. This should resolve the disk space
exhaustion issues that were occurring during the Windows ARM build phase,
which is one of the final platforms in the 15-platform build sequence.
This commit is contained in:
Olaoluwa Osuntokun
2025-10-20 15:58:42 +01:00
parent 2ccf4b9806
commit b82ed88be5

View File

@@ -28,7 +28,7 @@ jobs:
fetch-depth: 0
- name: cleanup space
run: rm -rf /opt/hostedtoolcache && mkdir -p /opt/hostedtoolcache/go
uses: ./.github/actions/cleanup-space
- name: setup go ${{ env.GO_VERSION }}
uses: actions/setup-go@v5