From ccedc39ffff4c7c834325a03a48c9c3b36d59f35 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 10 Aug 2026 19:18:37 +0200 Subject: [PATCH] chore: drop the shared Go cache from CI (#32703) --- .github/workflows/default.yml | 57 ----------------------------------- 1 file changed, 57 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 70b09547b..8118c99ed 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -26,15 +26,6 @@ jobs: cache: false # avoid cache thrashing id: go - # shared cache, written by the Build job on master only - - uses: actions/cache/restore@v6 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go- - - name: Install tools run: make install @@ -65,16 +56,6 @@ jobs: cache: false id: go - # single writer of the shared cache all other jobs restore from - - uses: actions/cache/restore@v6 - id: go-cache - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go- - - uses: voidzero-dev/setup-vp@v1 with: node-version: "26" @@ -85,17 +66,6 @@ jobs: - name: Build run: make build - # PR caches are only visible to their own PR, so writing them wastes the - # repo cache budget and evicts the master entry every job falls back to - - name: Save Go cache - if: github.ref == 'refs/heads/master' && steps.go-cache.outputs.cache-hit != 'true' - uses: actions/cache/save@v6 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - test: name: Test runs-on: depot-ubuntu-24.04-arm @@ -114,15 +84,6 @@ jobs: cache: false id: go - # shared cache, written by the Build job on master only - - uses: actions/cache/restore@v6 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go- - - name: Test run: mkdir dist && touch dist/empty && make test @@ -144,15 +105,6 @@ jobs: cache: false # avoid cache thrashing id: go - # shared cache, written by the Build job on master only - - uses: actions/cache/restore@v6 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go- - - run: mkdir dist && touch dist/empty - name: Lint @@ -232,15 +184,6 @@ jobs: cache: false id: go - # shared cache, written by the Build job on master only - - uses: actions/cache/restore@v6 - with: - path: | - ~/.cache/go-build - ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-go- - - uses: voidzero-dev/setup-vp@v1 with: node-version: "26"