Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,21 @@ jobs:
uses: actions/setup-go@v6
with:
go-version: ${{ env.GO_VERSION }}
cache: true
cache: false # replaced by the release-scoped cache below

# Release-scoped Go cache: setup-go's built-in cache is exact-match on
# go.sum and usually saved by CI test jobs (host-platform builds only);
# this one falls back on a restore-keys prefix and is saved at job end —
# after goreleaser — so it warms every cross-compiled GOOS/GOARCH target.
- name: Restore release Go cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-release-${{ runner.os }}-${{ hashFiles('go.mod', 'go.sum') }}
restore-keys: |
go-release-${{ runner.os }}-

- name: Checkout tag (workflow_dispatch)
if: github.event_name == 'workflow_dispatch'
Expand Down