From 5ac72ed2825936593db41f40c01c6406feb35b06 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 7 Apr 2025 12:23:16 +0200 Subject: [PATCH] GitHub: disable cache, remove hosted tools cache In an attempt to fix the "out of disk space" build error during release builds, we first disable using Golang caches (which can be quite large) and then remove a bunch of pre-installed tools and their caches to provide some additional disk storage. --- .github/workflows/release.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b39a358d7..9362cd9b8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,6 +28,10 @@ jobs: uses: actions/setup-go@v5 with: go-version: '${{ env.GO_VERSION }}' + cache: 'false' + + - name: cleanup space + run: rm -rf /opt/hostedtoolcache - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV