mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-28 00:00:11 +02:00
ci: add semver checking to CI (#5437)
This commit is contained in:
@@ -42,6 +42,7 @@ jobs:
|
|||||||
- test-unstable
|
- test-unstable
|
||||||
- miri
|
- miri
|
||||||
- asan
|
- asan
|
||||||
|
- semver
|
||||||
- cross-check
|
- cross-check
|
||||||
- cross-test
|
- cross-test
|
||||||
- no-atomic-u64
|
- no-atomic-u64
|
||||||
@@ -230,6 +231,28 @@ jobs:
|
|||||||
# Ignore `trybuild` errors as they are irrelevant and flaky on nightly
|
# Ignore `trybuild` errors as they are irrelevant and flaky on nightly
|
||||||
TRYBUILD: overwrite
|
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:
|
cross-check:
|
||||||
name: cross-check
|
name: cross-check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user