From 864aee237ef6020060b3050511f755143e5416d7 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Fri, 26 Jan 2024 10:05:49 +1100 Subject: [PATCH] CI: Run check-for-api-changes No point having the script if we don't run it. --- .github/workflows/rust.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml index 417fbcb..9e60c94 100644 --- a/.github/workflows/rust.yaml +++ b/.github/workflows/rust.yaml @@ -102,3 +102,18 @@ jobs: run: cargo install cross --locked - name: run cross test run: cross test --target s390x-unknown-linux-gnu + + API: + name: Check for changes to the public API + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: Checkout Crate + uses: actions/checkout@v3 + - name: Checkout Toolchain + uses: dtolnay/rust-toolchain@nightly + - name: Install cargo-public-api + run: cargo install --locked cargo-public-api + - name: Running API checker script + run: ./contrib/check-for-api-changes.sh