Merge branch 'nora/deny' into 'main'

ci: Cache the cargo-deny binary

See merge request openpgp-card/openpgp-card!22
This commit is contained in:
Heiko 2022-10-27 11:40:35 +00:00
commit 9314a1bb1f

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