ci(drone): 添加 Go 模块和构建缓存
- 在 restore cache 和 rebuild cache 步骤中添加了 go-mod-cache 和 go
This commit is contained in:
@@ -21,6 +21,7 @@ steps:
|
||||
- name: build
|
||||
image: golang:1.22
|
||||
commands:
|
||||
- echo "test" > /go/pkg/mod/testfile
|
||||
- echo "==== Before build, go/pkg/mod ===="
|
||||
- ls -lR /go/pkg/mod || echo "/go/pkg/mod not found"
|
||||
- echo "==== Before build, /root/.cache/go-build ===="
|
||||
|
||||
Reference in New Issue
Block a user