-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
d52f5dd
commit 0a0f0be
Showing
12 changed files
with
2,363 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target/ |
Oops, something went wrong.