build: Add cargo check

We've had a couple of occasions that Cargo.lock has been out of sync
with Cargo.toml, so try and extend our rust check to pick this up in the CI.

There is probably a more elegant way than doing `cargo check` and
checking for changes, but I'll start with this approach

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
stevenhorsman
2026-01-20 15:02:08 +00:00
parent cf3441bd2c
commit 3f1533ae8a

View File

@@ -184,6 +184,13 @@ standard_rust_check:
cargo clippy --all-targets --all-features --release \
-- \
-D warnings
cargo check
@DIFF=$$(git diff HEAD); \
if [ -n "$$DIFF" ]; then \
echo "ERROR: cargo check resulted in uncommited changes"; \
echo "$$DIFF"; \
exit 1; \
fi
# Install a file (full version).
#