Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,26 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: '1.25'
- uses: arduino/setup-protoc@v2
with:
protoc-version: '6.32.0'
- name: Install protoc v6.32.0
run: |
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v32.0/protoc-32.0-linux-x86_64.zip
sudo unzip -o protoc-32.0-linux-x86_64.zip -d /usr/local bin/protoc
sudo unzip -o protoc-32.0-linux-x86_64.zip -d /usr/local 'include/*'
rm protoc-32.0-linux-x86_64.zip

- name: Install Go dependencies
run: |
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.36.8
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2

- name: Generate protobuf code
run: make generate

- name: Verify generated code is up-to-date
run: |
echo "--- Diff after make generate in CI (should be empty for success) ---"
git diff zerfoo.pb.go
echo "--- End of post-generate diagnostics ---"
if ! git diff --exit-code; then
echo "Generated code is not up-to-date. Please run 'make generate' and commit the changes."
exit 1
Expand Down
2 changes: 1 addition & 1 deletion zerfoo.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.