Skip to content

Commit

Permalink
feat: add rust bindings (#1)
Browse files Browse the repository at this point in the history
* feat: add rust bindings

* feat: add rust bindings

* fix example bug

* add rust check in CI

* refactor ci

* refactor ci

* fix ci

* remove unused code
  • Loading branch information
shrimalmadhur authored Nov 12, 2024
1 parent d52f5dd commit 0a0f0be
Show file tree
Hide file tree
Showing 12 changed files with 2,363 additions and 11 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/check-generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ permissions:
contents: read

jobs:
check-make-generate:
name: Check make generate
check-go-generate:
name: Check make generate-go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -35,13 +35,39 @@ jobs:
- name: Check buf installation
run: buf --version

- name: Run make generate
run: make generate
- name: Run make generate-go
run: make generate-go

- name: Check if make generate generated changes that should be committed
- name: Check if make generate-go generated changes that should be committed
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: make generate generated changes that should be committed. Please run 'make generate' and commit the changes."
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
check-rust-generate:
name: Check make generate-rs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/[email protected]

- name: Install Protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Run make generate-rs
run: make generate-rs

- name: Check if make generate-rs generated changes that should be committed
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Error: make generate-rs generated changes that should be committed. Please run 'make generate-rs' and commit the changes."
git diff
git status
exit 1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
Loading

0 comments on commit 0a0f0be

Please sign in to comment.