build(ci): 添加Go模块缓存以加速构建
Some checks failed
构建上传工具 / build-tool (push) Failing after 2m19s

This commit is contained in:
2025-10-13 23:24:02 +08:00
parent 40210d0651
commit fa1aeba9d7

View File

@@ -27,6 +27,13 @@ jobs:
apt install -y mingw-w64 apt install -y mingw-w64
x86_64-w64-mingw32-gcc --version x86_64-w64-mingw32-gcc --version
- name: 缓存依赖
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
- name: 构建上传工具 - name: 构建上传工具
run: | run: |
go env -w CGO_ENABLED=1 go env -w CGO_ENABLED=1