ci: cache Go toolchains across main runs

Reduce repeated Go toolchain downloads while preserving main/manual-only workflow execution.
This commit is contained in:
AAA authored and GitHub committed 2026-09-06 23:45:50 +08:00
1 parent 2283c4e196
commit b941e6afcc
1 file changed
+15
+15
View File
@@ -89,6 +89,11 @@ jobs:
# The Go build embeds internal/server/webassets/dist, so Vite runs first.
- name: Build the Browser client
run: npm run build:client
- name: Cache Go toolchain
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/go
key: ${{ runner.os }}-go-1.26.6
- name: Set up Go
uses: actions/setup-go@v6
with:
@@ -114,6 +119,11 @@ jobs:
with:
node-version-file: .node-version
cache: npm
- name: Cache Go toolchain
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/go
key: ${{ runner.os }}-go-1.26.6
- name: Set up Go
uses: actions/setup-go@v6
with:
@@ -158,6 +168,11 @@ jobs:
with:
node-version-file: .node-version
cache: npm
- name: Cache Go toolchain
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/go
key: ${{ runner.os }}-go-1.26.6
- name: Set up Go
uses: actions/setup-go@v6
with: