ci: install clippy component before running it

`rust:1.94-trixie` ships rustc + cargo but not clippy — `rustup
component add clippy` pulls it in on the fly.
This commit is contained in:
Graham McIntire 2026-04-19 15:50:19 -05:00
parent d570452168
commit 339591cedd
No known key found for this signature in database
GPG key ID: F4ABF488E6029E59

View file

@ -60,7 +60,9 @@ jobs:
exit 1
# Gate the image build on a clean test run so a push that regresses
# the scorer or breaks clippy never produces an image.
# the scorer or breaks clippy never produces an image. The stock
# `rust:1.94-trixie` image doesn't ship clippy, so add it before
# running.
- name: cargo clippy + test
run: |
docker run --rm \
@ -68,6 +70,7 @@ jobs:
-w /src \
rust:1.94-trixie \
sh -euc '
rustup component add clippy
cargo clippy --all-targets -- -D warnings
cargo test
'