-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update package versions * Add build test * Add renovate config
- Loading branch information
Showing
6 changed files
with
132 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: ci | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Docker build | ||
run: docker build -t seqsense/protoc-assets . | ||
- name: Test protoc | ||
run: | | ||
cd test | ||
make |
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
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
], | ||
"regexManagers": [ | ||
{ | ||
"fileMatch": [ | ||
"^Dockerfile$" | ||
], | ||
"matchStrings": [ | ||
"ARG GLIBC_VERSION=(?<currentValue>.*)" | ||
], | ||
"datasourceTemplate": "github-tags", | ||
"depNameTemplate": "sgerrand/alpine-pkg-glibc", | ||
"versioningTemplate": "loose" | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!Makefile | ||
!test.proto | ||
!.gitignore |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
DOCKER_RUN_PROTOC_ARGS := --rm -u $(shell id -u):$(shell id -g) -v $(PWD):/defs seqsense/protoc-assets | ||
|
||
.PHONY: all | ||
all: pb-generate-go pb-generate-py pb-generate-rb pb-generate-js | ||
|
||
.PHONY: pb-generate-go | ||
pb-generate-go: | ||
docker run $(DOCKER_RUN_PROTOC_ARGS) protoc \ | ||
-I. \ | ||
--go_out=. \ | ||
--go_opt=paths=source_relative \ | ||
--go-grpc_out=. \ | ||
--go-grpc_opt=paths=source_relative \ | ||
test.proto | ||
|
||
.PHONY: pb-generate-cpp | ||
pb-generate-cpp: | ||
docker run $(DOCKER_RUN_PROTOC_ARGS) protoc \ | ||
-I. \ | ||
--cpp_out=. \ | ||
test.proto | ||
|
||
.PHONY: pb-generate-py | ||
pb-generate-py: | ||
docker run $(DOCKER_RUN_PROTOC_ARGS) python3 -m grpc_tools.protoc \ | ||
-I. \ | ||
--python_out=. \ | ||
--grpc_python_out=. \ | ||
test.proto | ||
|
||
.PHONY: pb-generate-rb | ||
pb-generate-rb: | ||
docker run $(DOCKER_RUN_PROTOC_ARGS) grpc_tools_ruby_protoc \ | ||
-I. \ | ||
--ruby_out=. \ | ||
--grpc_out=. \ | ||
test.proto | ||
|
||
.PHONY: pb-generate-js | ||
pb-generate-js: | ||
docker run $(DOCKER_RUN_PROTOC_ARGS) grpc_tools_node_protoc \ | ||
-I. \ | ||
--js_out=import_style=commonjs,binary:. \ | ||
--grpc_out=. \ | ||
test.proto |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
syntax = "proto3"; | ||
option go_package = "github.com/seqsense/protoc-assets/test"; | ||
|
||
package test; | ||
|
||
service Test { | ||
rpc Test (TestRequest) returns (TestReply) {} | ||
} | ||
|
||
message TestRequest { | ||
string input = 1; | ||
} | ||
|
||
message TestReply { | ||
string output = 1; | ||
} |