diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 864be59..26d3c7f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -168,6 +168,21 @@ jobs: cargo update cargo build + c-header: + name: Check generated C header + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - name: Install system dependencies + run: sudo apt-get install libelf-dev + - uses: dtolnay/rust-toolchain@stable + - run: cargo check --features bindgen-source + - name: Check that C header is up-to-date + run: git diff --exit-code || + (echo "!!!! CHECKED IN C HEADER IS OUTDATED !!!!" && false) + publish: name: Publish to crates.io if: github.ref == 'refs/heads/master' && github.ref_type == 'tag' diff --git a/src/bindings.rs b/src/bindings.rs index 3e35881..cf04aae 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.69.4 */ +/* automatically generated by rust-bindgen 0.70.1 */ #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]