Skip to content

armgit / Piik

Public Imported from GitHub
0

Free, open-source screen sharing for private live streams with friends. Watch together in a browser or self-host Piik. 免费开源的私密屏幕共享,支持游戏直播、一起看电影与自部署。

ci: cache Go toolchains across main runs

AAAb941e6afcc4f
diff --git a/.github/workflows/repository-hygiene.yml b/.github/workflows/repository-hygiene.yml
index f74f28f9..a521d889 100644
--- a/.github/workflows/repository-hygiene.yml
+++ b/.github/workflows/repository-hygiene.yml
@@ -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: