ci(drone): 添加 Go 模块和构建缓存

- 在 restore cache 和 rebuild cache 步骤中添加了 go-mod-cache 和 go
This commit is contained in:
hxt
2025-07-08 21:06:33 +08:00
parent d4c68baed0
commit 674ef7a270

View File

@@ -13,8 +13,8 @@ steps:
settings:
restore: true
mount:
- go/pkg/mod
- ~/.cache/go-build
- /go/pkg/mod
- /root/.cache/go-build
backend: local
cache_key: go-mod-cache-${DRONE_BRANCH}
@@ -48,8 +48,8 @@ steps:
settings:
rebuild: true
mount:
- go/pkg/mod
- ~/.cache/go-build
- /go/pkg/mod
- /root/.cache/go-build
backend: local
cache_key: go-mod-cache-${DRONE_BRANCH}