Skip to content

Commit

Permalink
Check protoc diff
Browse files Browse the repository at this point in the history
  • Loading branch information
rerost committed Aug 26, 2024
1 parent f30a767 commit c6d52ae
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,20 @@ jobs:
- name: Check
run: |
docker build -t test ./example/multiple_package/server
check_make_protoc:
runs-on: ubuntu-latest
name: Check Docker Build
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "27.x"
- name: Checkout repository
uses: actions/checkout@v4
- uses: ruby/setup-ruby@1
with:
working-directory: example/multiple_package/
- name: Install grpc_tools_ruby_protoc
run: gem install grpc_tools_ruby_protoc
- name: Check
run: make protoc && git diff --exit-code
1 change: 1 addition & 0 deletions example/multiple_package/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.8
2 changes: 1 addition & 1 deletion example/multiple_package/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

.PHONY: protoc
protoc:
protoc --go-grpc_out=plugins=grpc,paths=source_relative:. --reflection-server_out=. $(shell find . -name '*.proto')
protoc --go-grpc_out=. --go-grpc_opt=paths=source_relative --reflection-server_out=. $(shell find . -name '*.proto')
grpc_tools_ruby_protoc --ruby_out=$(PWD)/server --grpc_out=$(PWD)/server $(shell find . -name '*.proto')

0 comments on commit c6d52ae

Please sign in to comment.