From dc64ea97a244ddf1734fc34731c787ae3b57857a Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 20 Feb 2025 18:14:29 +0100 Subject: [PATCH] GitHub: remove duplicate caching Turns out that actions/setup-go starting with @v4 also adds caching. With that, our cache size on disk has almost doubled, leading to the GitHub runner running out of space in certain situation. We fix that by disabling the automated caching since we already have our own, custom-tailored version. --- .github/actions/setup-go/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-go/action.yml b/.github/actions/setup-go/action.yml index 77209cb40..b6d85c030 100644 --- a/.github/actions/setup-go/action.yml +++ b/.github/actions/setup-go/action.yml @@ -22,6 +22,7 @@ runs: uses: actions/setup-go@v5 with: go-version: '${{ inputs.go-version }}' + cache: 'false' - name: go cache if: ${{ inputs.use-build-cache == 'yes' }} @@ -44,7 +45,7 @@ runs: - name: go module cache if: ${{ inputs.use-build-cache == 'no' }} - uses: actions/cache@v3 + uses: actions/cache@v4 with: # Just the module download cache. path: |