ci: add bindgen workflow

This commit is contained in:
Amaan Qureshi 2024-10-29 15:32:43 -04:00
parent 350fff24bf
commit ab306f543f

24
.github/workflows/bindgen.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Check Bindgen Output
on:
pull_request:
push:
branches: [master]
jobs:
check-bindgen:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up stable Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Generate bindings
run: cargo xtask generate-bindings
- name: Check if the bindgen output changed
run: git diff --exit-code lib/binding_rust/bindings.rs