-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|