make: build-all target
This commit is contained in:
parent
81038b6a19
commit
2cbe14b234
@ -46,6 +46,15 @@ jobs:
|
|||||||
- go/mod-download
|
- go/mod-download
|
||||||
- go/mod-tidy-check
|
- go/mod-tidy-check
|
||||||
|
|
||||||
|
build-all:
|
||||||
|
executor: golang
|
||||||
|
steps:
|
||||||
|
- install-deps
|
||||||
|
- prepare
|
||||||
|
- go/mod-download
|
||||||
|
- run:
|
||||||
|
command: make buildall
|
||||||
|
|
||||||
test:
|
test:
|
||||||
description: |
|
description: |
|
||||||
Run tests with gotestsum.
|
Run tests with gotestsum.
|
||||||
@ -166,3 +175,4 @@ workflows:
|
|||||||
- test:
|
- test:
|
||||||
codecov-upload: true
|
codecov-upload: true
|
||||||
- mod-tidy-check
|
- mod-tidy-check
|
||||||
|
- build-all
|
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,6 +4,9 @@
|
|||||||
/pond
|
/pond
|
||||||
/townhall
|
/townhall
|
||||||
/fountain
|
/fountain
|
||||||
|
/stats
|
||||||
|
/bench
|
||||||
|
/bench.json
|
||||||
/lotuspond/front/node_modules
|
/lotuspond/front/node_modules
|
||||||
/lotuspond/front/build
|
/lotuspond/front/build
|
||||||
/cmd/lotus-townhall/townhall/node_modules
|
/cmd/lotus-townhall/townhall/node_modules
|
||||||
|
43
Makefile
43
Makefile
@ -37,7 +37,7 @@ build/.update-modules:
|
|||||||
|
|
||||||
# end git modules
|
# end git modules
|
||||||
|
|
||||||
## PROOFS
|
## MAIN BINARIES
|
||||||
|
|
||||||
CLEAN+=build/.update-modules
|
CLEAN+=build/.update-modules
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ lotus: $(BUILD_DEPS)
|
|||||||
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
|
.PHONY: lotus
|
||||||
CLEAN+=lotus
|
BINS+=lotus
|
||||||
|
|
||||||
lotus-storage-miner: $(BUILD_DEPS)
|
lotus-storage-miner: $(BUILD_DEPS)
|
||||||
rm -f lotus-storage-miner
|
rm -f lotus-storage-miner
|
||||||
@ -61,6 +61,16 @@ lotus-storage-miner: $(BUILD_DEPS)
|
|||||||
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
|
.PHONY: lotus-storage-miner
|
||||||
|
BINS+=lotus-storage-miner
|
||||||
|
|
||||||
|
build: lotus lotus-storage-miner
|
||||||
|
.PHONY: build
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -C ./lotus /usr/local/bin/lotus
|
||||||
|
install -C ./lotus-storage-miner /usr/local/bin/lotus-storage-miner
|
||||||
|
|
||||||
|
# TOOLS
|
||||||
|
|
||||||
lotus-seed: $(BUILD_DEPS)
|
lotus-seed: $(BUILD_DEPS)
|
||||||
rm -f lotus-seed
|
rm -f lotus-seed
|
||||||
@ -68,16 +78,7 @@ lotus-seed: $(BUILD_DEPS)
|
|||||||
go run github.com/GeertJohan/go.rice/rice append --exec lotus-seed -i ./build
|
go run github.com/GeertJohan/go.rice/rice append --exec lotus-seed -i ./build
|
||||||
|
|
||||||
.PHONY: lotus-seed
|
.PHONY: lotus-seed
|
||||||
|
BINS+=lotus-seed
|
||||||
CLEAN+=lotus-storage-miner
|
|
||||||
|
|
||||||
build: lotus lotus-storage-miner
|
|
||||||
|
|
||||||
.PHONY: build
|
|
||||||
|
|
||||||
install:
|
|
||||||
install -C ./lotus /usr/local/bin/lotus
|
|
||||||
install -C ./lotus-storage-miner /usr/local/bin/lotus-storage-miner
|
|
||||||
|
|
||||||
benchmarks:
|
benchmarks:
|
||||||
go run github.com/whyrusleeping/bencher ./... > bench.json
|
go run github.com/whyrusleeping/bencher ./... > bench.json
|
||||||
@ -89,6 +90,7 @@ pond: build
|
|||||||
go build -o pond ./lotuspond
|
go build -o pond ./lotuspond
|
||||||
(cd lotuspond/front && npm i && npm run build)
|
(cd lotuspond/front && npm i && npm run build)
|
||||||
.PHONY: pond
|
.PHONY: pond
|
||||||
|
BINS+=pond
|
||||||
|
|
||||||
townhall:
|
townhall:
|
||||||
rm -f townhall
|
rm -f townhall
|
||||||
@ -96,26 +98,41 @@ townhall:
|
|||||||
(cd ./cmd/lotus-townhall/townhall && npm i && npm run build)
|
(cd ./cmd/lotus-townhall/townhall && npm i && npm run build)
|
||||||
go run github.com/GeertJohan/go.rice/rice append --exec townhall -i ./cmd/lotus-townhall -i ./build
|
go run github.com/GeertJohan/go.rice/rice append --exec townhall -i ./cmd/lotus-townhall -i ./build
|
||||||
.PHONY: townhall
|
.PHONY: townhall
|
||||||
|
BINS+=townhall
|
||||||
|
|
||||||
fountain:
|
fountain:
|
||||||
rm -f fountain
|
rm -f fountain
|
||||||
go build -o fountain ./cmd/lotus-fountain
|
go build -o fountain ./cmd/lotus-fountain
|
||||||
go run github.com/GeertJohan/go.rice/rice append --exec fountain -i ./cmd/lotus-fountain
|
go run github.com/GeertJohan/go.rice/rice append --exec fountain -i ./cmd/lotus-fountain
|
||||||
.PHONY: fountain
|
.PHONY: fountain
|
||||||
|
BINS+=fountain
|
||||||
|
|
||||||
chainwatch:
|
chainwatch:
|
||||||
rm -f chainwatch
|
rm -f chainwatch
|
||||||
go build -o chainwatch ./cmd/lotus-chainwatch
|
go build -o chainwatch ./cmd/lotus-chainwatch
|
||||||
go run github.com/GeertJohan/go.rice/rice append --exec chainwatch -i ./cmd/lotus-chainwatch
|
go run github.com/GeertJohan/go.rice/rice append --exec chainwatch -i ./cmd/lotus-chainwatch
|
||||||
.PHONY: chainwatch
|
.PHONY: chainwatch
|
||||||
|
BINS+=chainwatch
|
||||||
|
|
||||||
|
bench:
|
||||||
|
rm -f bench
|
||||||
|
go build -o bench ./cmd/lotus-bench
|
||||||
|
go run github.com/GeertJohan/go.rice/rice append --exec bench -i ./build
|
||||||
|
.PHONY: bench
|
||||||
|
BINS+=bench
|
||||||
|
|
||||||
stats:
|
stats:
|
||||||
rm -f stats
|
rm -f stats
|
||||||
go build -o stats ./tools/stats
|
go build -o stats ./tools/stats
|
||||||
.PHONY: stats
|
.PHONY: stats
|
||||||
|
BINS+=stats
|
||||||
|
|
||||||
|
# MISC
|
||||||
|
|
||||||
|
buildall: $(BINS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(CLEAN)
|
rm -rf $(CLEAN) $(BINS)
|
||||||
-$(MAKE) -C $(FFI_PATH) clean
|
-$(MAKE) -C $(FFI_PATH) clean
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user