ci: Cache the cargo-deny binary

This commit is contained in:
Nora Widdecke 2022-10-27 12:19:28 +02:00
parent e8d18ccfa3
commit 5bad1e7624
No known key found for this signature in database
GPG key ID: 2D4111B31DBB99B6

View file

@ -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