From 5322f0ed4489b1042c02b6a1bd8047670c659311 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Mon, 8 Jan 2024 12:32:29 +1000 Subject: [PATCH] Add CI job to run cargo-semver-checks --- .github/workflows/rust.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index bc8fe0865..0d39be160 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,7 +17,7 @@ jobs: complete: if: always() - needs: [fmt, check-git-rev-deps, build-and-test, docs, readme] + needs: [fmt, check-git-rev-deps, api-compat, build-and-test, docs, readme] runs-on: ubuntu-latest steps: - if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') @@ -60,6 +60,20 @@ jobs: - name: Check if rust-analyzer encounters any errors parsing project run: rustup run nightly rust-analyzer analysis-stats . 2>&1 | (! grep '^\[ERROR') + api-compat: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rustup update + # TODO: Replace with stellar/binaries once + # https://github.com/stellar/binaries/pull/17 is merged. + - run: cargo install --locked cargo-semver-checks --version 0.27.0 + # - uses: stellar/binaries@v18 + # with: + # name: cargo-semver-checks + # version: 0.27.0 + - run: cargo semver-checks + build-and-test: strategy: fail-fast: false