From 1dcfe1cc9bb32fdc57ead3ff642d58bc8f282fd4 Mon Sep 17 00:00:00 2001 From: Finomnis Date: Wed, 8 Feb 2023 16:45:02 +0100 Subject: [PATCH] ci: add semver checking to CI (#5437) --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2813ede8a86..704f7b4e56f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,7 @@ jobs: - test-unstable - miri - asan + - semver - cross-check - cross-test - no-atomic-u64 @@ -230,6 +231,28 @@ jobs: # Ignore `trybuild` errors as they are irrelevant and flaky on nightly TRYBUILD: overwrite + semver: + name: semver + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install Rust ${{ env.rust_stable }} + uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ env.rust_stable }} + - name: Install cargo-semver-checks + uses: taiki-e/install-action@v2 + with: + tool: cargo-semver-checks + - name: Check semver compatibility + run: | + cargo semver-checks check-release \ + --exclude benches \ + --exclude examples \ + --exclude stress-test \ + --exclude tests-build \ + --exclude tests-integration + cross-check: name: cross-check runs-on: ubuntu-latest