mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-23 23:05:18 +00:00
fix ci config
This commit is contained in:
parent
107431a311
commit
0e389144ab
@ -30,6 +30,33 @@ commands:
|
||||
|
||||
jobs:
|
||||
setup-dependencies:
|
||||
executor: golang
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache:
|
||||
name: "Restore go modules cache"
|
||||
keys:
|
||||
- go-mod-v2-{{ checksum "go.sum" }}
|
||||
- run:
|
||||
name: Cache go modules
|
||||
command: make go-mod-cache
|
||||
- run:
|
||||
name: Build
|
||||
command: make build
|
||||
- run:
|
||||
name: Git garbage collection
|
||||
command: git gc
|
||||
- save_cache:
|
||||
name: "Save go modules cache"
|
||||
key: go-mod-v2-{{ checksum "go.sum" }}
|
||||
paths:
|
||||
- "/go/pkg/mod"
|
||||
- save_cache:
|
||||
name: "Save source code cache"
|
||||
key: go-src-v1-{{ .Revision }}
|
||||
paths:
|
||||
- ".git"
|
||||
setup-dependencies-tags:
|
||||
executor: golang
|
||||
steps:
|
||||
- checkout
|
||||
|
Loading…
Reference in New Issue
Block a user