CI: Add job to check for API changes

Add a job that runs the new script to check for changes to the public
APIs of `hashes` and `bitcoin`.
This commit is contained in:
Tobin C. Harding 2023-05-26 17:06:28 +10:00
parent 9e7cd97c25
commit b222f40f99
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 18 additions and 0 deletions

View File

@ -316,3 +316,21 @@ jobs:
uses: model-checking/kani-github-action@v1.1 uses: model-checking/kani-github-action@v1.1
with: with:
args: "--only-codegen" args: "--only-codegen"
API:
needs: Prepare
name: API - nightly toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: "Select toolchain"
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ needs.Prepare.outputs.nightly_version }}
- name: "Install cargo-public-api"
run: cargo install --locked cargo-public-api
- name: "Run API checker script"
run: ./contrib/check-for-api-changes.sh