Skip to content

Commit

Permalink
Use the cargo-semver-checks GitHub Action for semver-checking
Browse files Browse the repository at this point in the history
Will provide a substantial performance improvement:
- cargo-semver-checks v0.20 is orders of magnitude faster at checking large crates — 2354x faster on `aws-sdk-ec2`;
- the GitHub Action caches baseline rustdoc JSON files which is worth another ~2x speedup.

As discussed here: tokio-rs#5437 (comment)
  • Loading branch information
obi1kenobi authored Apr 24, 2023
1 parent c1778ed commit 766a565
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -254,17 +254,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust ${{ env.rust_stable }}
uses: dtolnay/rust-toolchain@master
- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2
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 --release-type minor
rust-toolchain: ${{ env.rust_stable }}
release-type: minor

cross-check:
name: cross-check
Expand Down

0 comments on commit 766a565

Please sign in to comment.