Use ./lotus fetch-params for CI
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
parent
640437e13a
commit
08758159cc
@ -26,7 +26,7 @@ commands:
|
|||||||
- 'v2-lotus-params-'
|
- 'v2-lotus-params-'
|
||||||
paths:
|
paths:
|
||||||
- /var/tmp/filecoin-proof-parameters/
|
- /var/tmp/filecoin-proof-parameters/
|
||||||
- run: make build/.params-1024
|
- run: ./lotus fetch-params
|
||||||
- save_cache:
|
- save_cache:
|
||||||
name: Save parameters cache
|
name: Save parameters cache
|
||||||
key: 'v2-lotus-params-{{ checksum "build/proof-params/parameters.json" }}'
|
key: 'v2-lotus-params-{{ checksum "build/proof-params/parameters.json" }}'
|
||||||
@ -81,11 +81,10 @@ jobs:
|
|||||||
- install-deps
|
- install-deps
|
||||||
- prepare
|
- prepare
|
||||||
- go/mod-download
|
- go/mod-download
|
||||||
- run: echo 'export PATH=$HOME/.cargo/bin:$PATH' >> $BASH_ENV
|
|
||||||
- download-params
|
|
||||||
- run:
|
- run:
|
||||||
command: make deps
|
command: make deps lotus
|
||||||
no_output_timeout: 30m
|
no_output_timeout: 30m
|
||||||
|
- download-params
|
||||||
- go/install-gotestsum:
|
- go/install-gotestsum:
|
||||||
gobin: $HOME/.local/bin
|
gobin: $HOME/.local/bin
|
||||||
- run:
|
- run:
|
||||||
@ -137,7 +136,6 @@ jobs:
|
|||||||
- install-deps
|
- install-deps
|
||||||
- prepare
|
- prepare
|
||||||
- go/mod-download
|
- go/mod-download
|
||||||
- download-params
|
|
||||||
- run:
|
- run:
|
||||||
command: make deps
|
command: make deps
|
||||||
no_output_timeout: 30m
|
no_output_timeout: 30m
|
||||||
|
20
Makefile
20
Makefile
@ -55,15 +55,27 @@ CLEAN+=build/.update-modules
|
|||||||
deps: $(BUILD_DEPS)
|
deps: $(BUILD_DEPS)
|
||||||
.PHONY: deps
|
.PHONY: deps
|
||||||
|
|
||||||
build: $(BUILD_DEPS)
|
lotus: $(BUILD_DEPS)
|
||||||
rm -f lotus lotus-storage-miner
|
rm -f lotus
|
||||||
go build -o lotus ./cmd/lotus
|
go build -o lotus ./cmd/lotus
|
||||||
go build -o lotus-storage-miner ./cmd/lotus-storage-miner
|
|
||||||
go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build
|
go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build
|
||||||
|
|
||||||
|
.PHONY: lotus
|
||||||
|
CLEAN+=lotus
|
||||||
|
|
||||||
|
lotus-sotrage-miner: $(BUILD_DEPS)
|
||||||
|
rm -f lotus-storage-miner
|
||||||
|
go build -o lotus-storage-miner ./cmd/lotus-storage-miner
|
||||||
go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build
|
go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build
|
||||||
|
|
||||||
|
.PHONY: lotus-storage-miner
|
||||||
|
|
||||||
|
CLEAN+=lotus-storage-miner
|
||||||
|
|
||||||
|
build: lotus lotus-sotrage-miner
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
|
|
||||||
CLEAN+= lotus lotus-storage-miner
|
|
||||||
|
|
||||||
benchmarks:
|
benchmarks:
|
||||||
go run github.com/whyrusleeping/bencher ./... > bench.json
|
go run github.com/whyrusleeping/bencher ./... > bench.json
|
||||||
|
Loading…
Reference in New Issue
Block a user