From d112b8786b6ce238a1e7bc2172bf5bcff579f6ec Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Tue, 15 Oct 2024 10:09:18 +0200 Subject: [PATCH] Check bindings are up to date on CI --- .github/workflows/ci.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9fb8b1cba..b66fca86e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -284,6 +284,36 @@ jobs: - name: Run tests run: cargo miri test --workspace --all-features miri + check-bindings: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: | + sudo apt update + sudo apt install libpam0g-dev + + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + with: + shared-key: "msrv" + + - name: Install rust-bindgen + uses: taiki-e/install-action@v2 + with: + tool: bindgen-cli@0.70.1 + + - name: Install cargo-minify + run: cargo install --locked --git https://github.com/tweedegolf/cargo-minify cargo-minify + + - name: Regenerate bindings + run: make -B pam-sys + + - name: Check for differences + run: git diff --exit-code + format: runs-on: ubuntu-latest env: