Skip to content

Commit

Permalink
Use stable rustc for scheduled semver checks
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienG2 committed Aug 20, 2024
1 parent c240343 commit 8645354
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8645354

Please sign in to comment.