Skip to content

Commit e047e7d

Browse files
authored
Merge pull request #31 from HadrienG2/scheduled-semver-checks
Use stable rustc for scheduled semver checks
2 parents c240343 + 8645354 commit e047e7d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,28 @@ jobs:
7474
run: cargo clippy --workspace --all-targets -- -D warnings
7575

7676
- name: Check semver
77+
# Not guaranteed to run on nightly, so we use the separate job below
78+
if: github.event_name != 'schedule'
79+
uses: obi1kenobi/cargo-semver-checks-action@v2
80+
with:
81+
rust-toolchain: manual
82+
83+
# Workaround for cargo-semver-checks not guaranteeing nightly support
84+
scheduled-semver-checks:
85+
if: github.event_name == 'schedule'
86+
87+
runs-on: ubuntu-latest
88+
89+
steps:
90+
- name: Checkout sources
91+
uses: actions/checkout@v4
92+
93+
- name: Set up stable toolchain
94+
uses: actions-rust-lang/setup-rust-toolchain@v1
95+
with:
96+
components: rustfmt,clippy
97+
98+
- name: Check semver (scheduled version)
7799
uses: obi1kenobi/cargo-semver-checks-action@v2
78100
with:
79101
rust-toolchain: manual

0 commit comments

Comments
 (0)