diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1b1092..decdeb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/zerfoo.pb.go b/zerfoo.pb.go index b72a4e7..7206e1e 100644 --- a/zerfoo.pb.go +++ b/zerfoo.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.6 +// protoc-gen-go v1.36.8 // protoc v6.32.0 // source: zerfoo.proto