mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
commit
3f25bae640
@ -1,5 +1,4 @@
|
|||||||
version 2.1
|
version: 2.1
|
||||||
|
|
||||||
executors:
|
executors:
|
||||||
golang:
|
golang:
|
||||||
docker:
|
docker:
|
||||||
@ -14,20 +13,20 @@ commands:
|
|||||||
type: string
|
type: string
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /tmp/workspace
|
at: /tmp/workspace
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: "Restore source code cache"
|
name: "Restore source code cache"
|
||||||
keys:
|
keys:
|
||||||
- go-src-v1-{{ .Revision }}
|
- go-src-v1-{{ .Revision }}
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: "Restore go modules cache"
|
name: "Restore go modules cache"
|
||||||
keys:
|
keys:
|
||||||
- go-mod-v2-{{ checksum "go.sum" }}
|
- go-mod-v2-{{ checksum "go.sum" }}
|
||||||
- run:
|
- run:
|
||||||
name: << parameters.description >>
|
name: << parameters.description >>
|
||||||
cammnd: |
|
command: |
|
||||||
make << parameters.target >>
|
make << parameters.target >>
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup-dependencies:
|
setup-dependencies:
|
||||||
@ -35,12 +34,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: "Restore go modules cache"
|
name: "Restore go modules cache"
|
||||||
keys:
|
keys:
|
||||||
- go-mod-v2-{{ checksum "go.sum" }}
|
- go-mod-v2-{{ checksum "go.sum" }}
|
||||||
- run:
|
- run:
|
||||||
name: Cache go modules
|
name: Cache go modules
|
||||||
command: make go-mod-cache
|
command: make go-mod-cache
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: make build
|
command: make build
|
||||||
|
5
Makefile
5
Makefile
@ -82,6 +82,11 @@ install: go.sum
|
|||||||
########################################
|
########################################
|
||||||
### Tools & dependencies
|
### Tools & dependencies
|
||||||
|
|
||||||
|
go-mod-cache: go.sum
|
||||||
|
@echo "--> Download go modules to local cache"
|
||||||
|
@go mod download
|
||||||
|
PHONY: go-mod-cache
|
||||||
|
|
||||||
go.sum: go.mod
|
go.sum: go.mod
|
||||||
@echo "--> Ensuring dependencies have not been modified"
|
@echo "--> Ensuring dependencies have not been modified"
|
||||||
@go mod verify
|
@go mod verify
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
|
[![version](https://img.shields.io/github/tag/kava-labs/kava.svg)](https://github.com/kava-labs/kava/releases/latest)
|
||||||
|
[![CircleCI](https://circleci.com/gh/Kava-Labs/kava/tree/master.svg?style=shield)](https://circleci.com/gh/Kava-Labs/kava/tree/master)
|
||||||
[![Go Report Card](https://goreportcard.com/badge/github.com/kava-labs/kava)](https://goreportcard.com/report/github.com/kava-labs/kava)
|
[![Go Report Card](https://goreportcard.com/badge/github.com/kava-labs/kava)](https://goreportcard.com/report/github.com/kava-labs/kava)
|
||||||
[![API Reference](https://godoc.org/github.com/Kava-Labs/kava?status.svg)](https://godoc.org/github.com/Kava-Labs/kava)
|
[![API Reference](https://godoc.org/github.com/Kava-Labs/kava?status.svg)](https://godoc.org/github.com/Kava-Labs/kava)
|
||||||
[![GitHub](https://img.shields.io/github/license/kava-labs/kava.svg)](https://github.com/Kava-Labs/kava/blob/master/LICENSE.md)
|
[![GitHub](https://img.shields.io/github/license/kava-labs/kava.svg)](https://github.com/Kava-Labs/kava/blob/master/LICENSE.md)
|
||||||
|
Loading…
Reference in New Issue
Block a user