Skip to content

feat: add rust bindings #1

feat: add rust bindings

feat: add rust bindings #1

name: Check go generate
on:
push:
branches:
- master
pull_request:
permissions:
contents: read
jobs:
check-go-generate:
name: Check make generate-go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21' # Specify the Go version you're using
- name: Install protoc-gen-go and protoc-gen-go-grpc
run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
go install github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]
go install github.com/grpc-ecosystem/grpc-gateway/v2/[email protected]
echo "${HOME}/go/bin" >> $GITHUB_PATH
- uses: bufbuild/[email protected]
with:
version: 1.32.1
- name: Check buf installation
run: buf --version
- name: Run make generate
run: make generate
- name: Check if make generate-go generated changes that should be committed
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: make generate-go generated changes that should be committed. Please run 'make generate-go' and commit the changes."
git diff
git status
exit 1
fi