From e8c2c844a8a45657b89ff2f05eed2d69a9111d66 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 1 Nov 2026 21:21:09 +1100 Subject: [PATCH] ci: skip setup-go caching on the self-hosted runner (#1716) --- .github/workflows/canary.yml | 3 +++ .github/workflows/deploy.yml | 6 ++++++ .github/workflows/release.yml | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index e7189c073..a65bc7a72 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -33,6 +33,9 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod + # The self-hosted runner keeps the Go caches on disk between jobs, and + # archiving them for the Actions cache takes minutes. + cache: false - name: Build archied run: go build -o "$RUNNER_TEMP/archied" ./cmd/archied diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a3045b135..4caee2a17 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,6 +59,9 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod + # The self-hosted runner keeps the Go caches on disk between jobs, and + # archiving them for the Actions cache takes minutes. + cache: false - uses: pnpm/action-setup@v4 with: @@ -292,6 +295,9 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod + # The self-hosted runner keeps the Go caches on disk between jobs, and + # archiving them for the Actions cache takes minutes. + cache: false - name: Resolve archied version id: version diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1ea32d1f1..0577ff525 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,6 +34,9 @@ jobs: uses: actions/setup-go@v5 with: go-version-file: go.mod + # The self-hosted runner keeps the Go caches on disk between jobs, and + # archiving them for the Actions cache takes minutes. + cache: false - name: Install Task run: go install github.com/go-task/task/v3/cmd/task@v3.48.0