chiark / gitweb /
Add clippy job using today's stable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 May 2026 18:28:49 +0000 (19:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 10 May 2026 21:24:05 +0000 (22:24 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitlab-ci.yml

index b5144e2f36751baa0c31d9a29b4bae6dc89bc771..db32a50dd08c4f2c53099260575f61df36c5769f 100644 (file)
@@ -26,6 +26,15 @@ cargo-test:
   script:
     - cargo test --locked --workspace --verbose --all-features
 
+cargo-clippy:
+  stage: test
+  # This can fail when new lints turn up.  So we pin the compiler.
+  # We should update this (when we switch from trixie to forky, at least).
+  image: "rust:1.95.0"
+  script:
+    - rustup component add clippy
+    - cargo clippy --locked --workspace --all-features
+
 cargo-update-test-nightly:
   stage: test
   image: "rustlang/rust:nightly"