make: Fix parallel gen

This commit is contained in:
Łukasz Magiera 2021-03-25 15:19:22 +01:00
parent c25190bd8c
commit 736c69784a
5 changed files with 5 additions and 4 deletions

View File

@ -408,6 +408,7 @@ jobs:
steps: steps:
- install-deps - install-deps
- prepare - prepare
- run: go install golang.org/x/tools/cmd/goimports
- run: zcat build/openrpc/full.json.gz | jq > ../pre-openrpc-full - run: zcat build/openrpc/full.json.gz | jq > ../pre-openrpc-full
- run: zcat build/openrpc/miner.json.gz | jq > ../pre-openrpc-miner - run: zcat build/openrpc/miner.json.gz | jq > ../pre-openrpc-miner
- run: zcat build/openrpc/worker.json.gz | jq > ../pre-openrpc-worker - run: zcat build/openrpc/worker.json.gz | jq > ../pre-openrpc-worker

View File

@ -318,12 +318,12 @@ dist-clean:
git submodule deinit --all -f git submodule deinit --all -f
.PHONY: dist-clean .PHONY: dist-clean
type-gen: type-gen: api-gen
go run ./gen/main.go go run ./gen/main.go
go generate -x ./... go generate -x ./...
goimports -w api/ goimports -w api/
method-gen: method-gen: api-gen
(cd ./lotuspond/front/src/chain && go run ./methodgen.go) (cd ./lotuspond/front/src/chain && go run ./methodgen.go)
api-gen: api-gen:
@ -334,9 +334,9 @@ api-gen:
docsgen: docsgen-md docsgen-openrpc docsgen: docsgen-md docsgen-openrpc
docsgen-md-bin: docsgen-md-bin: api-gen
go build $(GOFLAGS) -o docgen-md ./api/docgen/cmd go build $(GOFLAGS) -o docgen-md ./api/docgen/cmd
docsgen-openrpc-bin: docsgen-openrpc-bin: api-gen
go build $(GOFLAGS) -o docgen-openrpc ./api/docgen-openrpc/cmd go build $(GOFLAGS) -o docgen-openrpc ./api/docgen-openrpc/cmd
docsgen-md: docsgen-md-full docsgen-md-storage docsgen-md-worker docsgen-md: docsgen-md-full docsgen-md-storage docsgen-md-worker

Binary file not shown.

Binary file not shown.

Binary file not shown.