chore: drop the shared Go cache from CI (#32703)

This commit is contained in:
andig 2026-08-10 19:18:37 +02:00 • committed by GitHub
parent cc72eeb510
commit ccedc39fff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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"