Skip to content

Commit

Permalink
Check bindings are up to date on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Oct 15, 2024
1 parent bec608c commit d112b87
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]

- 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:
Expand Down

0 comments on commit d112b87

Please sign in to comment.