From ab306f543f13a0f3ab85e02e30dff69af8b6e983 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Tue, 29 Oct 2024 15:32:43 -0400 Subject: [PATCH] ci: add bindgen workflow --- .github/workflows/bindgen.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/bindgen.yml diff --git a/.github/workflows/bindgen.yml b/.github/workflows/bindgen.yml new file mode 100644 index 00000000..d2350b31 --- /dev/null +++ b/.github/workflows/bindgen.yml @@ -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