ci: Cache the cargo-deny binary
This commit is contained in:
parent
e8d18ccfa3
commit
5bad1e7624
1 changed files with 8 additions and 2 deletions
|
@ -49,11 +49,17 @@ cargo-deny:
|
||||||
stage: lint
|
stage: lint
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
before_script:
|
before_script:
|
||||||
- cargo install --locked cargo-deny
|
# The cargo deny binary is cached, so installing it errors if it was
|
||||||
|
# restored from cache. Ignore that error.
|
||||||
|
# Clear the cache to force a rebuild.
|
||||||
|
- cargo install --locked cargo-deny || true
|
||||||
- *report-rust
|
- *report-rust
|
||||||
script:
|
script:
|
||||||
- cargo deny check
|
- cargo deny check
|
||||||
cache: [ ]
|
cache:
|
||||||
|
paths:
|
||||||
|
- cargo/bin/cargo-deny
|
||||||
|
key: "deny"
|
||||||
|
|
||||||
cargo-clippy:
|
cargo-clippy:
|
||||||
stage: lint
|
stage: lint
|
||||||
|
|
Loading…
Reference in a new issue