Skip to content

Commit

Permalink
CI: Add job to check for API changes
Browse files Browse the repository at this point in the history
Add a job that runs the new script to check for changes to the public
APIs of `hashes` and `bitcoin`.
  • Loading branch information
tcharding committed May 17, 2024
1 parent 9e7cd97 commit b222f40
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,21 @@ jobs:
uses: model-checking/kani-github-action@v1.1
with:
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

0 comments on commit b222f40

Please sign in to comment.