From 8645354127acf12f3f49a9476f8ba37b4061bbb2 Mon Sep 17 00:00:00 2001 From: Hadrien Grasland Date: Tue, 20 Aug 2024 14:52:03 +0200 Subject: [PATCH] Use stable rustc for scheduled semver checks --- .github/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f1a6d2..cfead14 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,6 +74,28 @@ jobs: run: cargo clippy --workspace --all-targets -- -D warnings - name: Check semver + # Not guaranteed to run on nightly, so we use the separate job below + if: github.event_name != 'schedule' + uses: obi1kenobi/cargo-semver-checks-action@v2 + with: + rust-toolchain: manual + + # Workaround for cargo-semver-checks not guaranteeing nightly support + scheduled-semver-checks: + if: github.event_name == 'schedule' + + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Set up stable toolchain + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt,clippy + + - name: Check semver (scheduled version) uses: obi1kenobi/cargo-semver-checks-action@v2 with: rust-toolchain: manual