feat(ci): download cargo-semver-checks instead of building it (#3378)

This is much quicker to execute. To keep our CI reproducible, I opted to link to a specific version instead of the "latest" release. Updating to a new version is as easy as switching out the version number in the URL.
This commit is contained in:
Thomas Eizinger
2023-01-25 00:59:10 +11:00
committed by GitHub
parent ba4015d0d2
commit 47fe699f5e
2 changed files with 1 additions and 4 deletions

View File

@ -75,6 +75,3 @@ jobs:
- name: Render docs - name: Render docs
run: cargo doc --all-features --workspace run: cargo doc --all-features --workspace
- name: Install tools
run: cargo install cargo-semver-checks --locked

View File

@ -73,7 +73,7 @@ jobs:
- name: Check public API for semver violations - name: Check public API for semver violations
if: steps.check-released.outputs.code == 200 # Workaround until https://github.com/obi1kenobi/cargo-semver-check/issues/146 is shipped. if: steps.check-released.outputs.code == 200 # Workaround until https://github.com/obi1kenobi/cargo-semver-check/issues/146 is shipped.
run: | run: |
cargo install cargo-semver-checks --locked wget -q -O- https://github.com/obi1kenobi/cargo-semver-checks/releases/download/v0.16.1/cargo-semver-checks-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C ~/.cargo/bin
cargo semver-checks check-release -p ${{ matrix.crate }} cargo semver-checks check-release -p ${{ matrix.crate }}
- name: Enforce no dependency on meta crate - name: Enforce no dependency on meta crate