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: settings:
restore: true restore: true
mount: mount:
- go/pkg/mod - /go/pkg/mod
- ~/.cache/go-build - /root/.cache/go-build
backend: local backend: local
cache_key: go-mod-cache-${DRONE_BRANCH} cache_key: go-mod-cache-${DRONE_BRANCH}
@@ -48,8 +48,8 @@ steps:
settings: settings:
rebuild: true rebuild: true
mount: mount:
- go/pkg/mod - /go/pkg/mod
- ~/.cache/go-build - /root/.cache/go-build
backend: local backend: local
cache_key: go-mod-cache-${DRONE_BRANCH} cache_key: go-mod-cache-${DRONE_BRANCH}