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 9291e6e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,39 @@ 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 rustfmt
run: rustup component add rustfmt

- 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 9291e6e

Please sign in to comment.