Sfoglia il codice sorgente

cicd: githooks no longer triggered by grpc. protoc added as alternative to buf.

jamesread 3 anni fa
parent
commit
58f3aaf47d
1 ha cambiato i file con 8 aggiunte e 1 eliminazioni
  1. 8 1
      Makefile

+ 8 - 1
Makefile

@@ -34,9 +34,16 @@ go-tools:
 	go install "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
 	go install "google.golang.org/protobuf/cmd/protoc-gen-go"
 
-grpc: githooks go-tools
+setup: grpc githooks go-tools
+
+grpc:
 	buf generate
 
+dist: grpc
+
+protoc:
+	protoc --go_out=. --go-grpc_out=. --grpc-gateway_out=. -I .:/usr/include/ OliveTin.proto
+
 podman-image:
 	buildah bud -t olivetin