Create generate-bindings.yml

This commit is contained in:
Kalyan 2025-03-10 15:30:49 +05:30 committed by GitHub
parent 256350484b
commit 3b8f991751
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

38
.github/workflows/generate-bindings.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Generate Rust Bindings
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
generate-bindings:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set Up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang llvm-dev
- name: Build the Project
run: cargo build
- name: Commit Generated Bindings
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
git add src/bindings/bindings.rs
git commit -m "Automatically generated Rust bindings"
git push