-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1ad1a3
commit 62963d5
Showing
9 changed files
with
89,829 additions
and
203,597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
VERSION ?= $(shell echo $(shell git describe --tags) | sed 's/^v//') | ||
COMMIT := $(shell git log -1 --format='%H') | ||
DOCKER := $(shell which docker) | ||
DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf | ||
|
||
# SPID and API_KEY are used for Intel SGX attestation | ||
SPID ?= 00000000000000000000000000000000 | ||
|
@@ -541,30 +540,42 @@ aesm-image: | |
docker build -f deployment/dockerfiles/aesm.Dockerfile -t enigmampc/aesm . | ||
|
||
############################################################################### | ||
### Protobuf ### | ||
### Swagger & Protobuf ### | ||
############################################################################### | ||
|
||
protoVer=0.14.0 | ||
protoImageName=ghcr.io/cosmos/proto-builder:$(protoVer) | ||
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) | ||
|
||
proto-all: proto-format proto-gen proto-swagger-gen | ||
.PHONY: update-swagger-openapi-docs statik statik-install proto-swagger-openapi-gen | ||
|
||
statik-install: | ||
@echo "Installing statik..." | ||
@go install github.com/rakyll/[email protected] | ||
|
||
statik: | ||
statik -src=client/docs/static/ -dest=client/docs -f -m | ||
|
||
proto-swagger-openapi-gen: | ||
@echo "Generating Protobuf Swagger: $@" | ||
@./scripts/protoc-swagger-openapi-gen.sh | ||
|
||
# Example `CHAIN_VERSION=v1.4.0 make update-swagger-openapi-docs` | ||
update-swagger-openapi-docs: statik-install proto-swagger-openapi-gen statik | ||
|
||
proto-all: proto-format proto-gen proto-swagger-openapi-gen | ||
|
||
proto-gen: | ||
@echo "Generating Protobuf files" | ||
@$(protoImage) sh ./scripts/protocgen.sh | ||
|
||
proto-swagger-gen: | ||
@echo "Generating Protobuf Swagger: $@" | ||
@$(shell ./scripts/protoc-swagger-gen.sh $@) | ||
proto-lint: | ||
@$(protoImage) buf lint --error-format=json | ||
|
||
proto-format: | ||
@$(protoImage) find ./proto -name "*.proto" -exec clang-format -i {} \; | ||
|
||
proto-lint: | ||
@$(protoImage) buf lint --error-format=json | ||
|
||
.PHONY: proto-all proto-gen proto-swagger-gen proto-format proto-lint | ||
.PHONY: proto-all proto-gen proto-format proto-lint proto-check-breaking | ||
|
||
.PHONY: check-hw | ||
check-hw: build-linux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.