Description
The clp-rust-checks workflow should be optimised to skip execution when no Rust-related files have been changed. This will reduce unnecessary CI runs and improve resource utilisation.
Proposed Solution
Add path filters or conditional logic to detect Rust-related changes (e.g., changes to *.rs files, Cargo.toml, Cargo.lock, Rust-related directories) before running the workflow.
Context
This optimisation was suggested following the addition of the Rust lock file validation step in PR #1448.
References
Reported by: @junhaoliao
Description
The
clp-rust-checksworkflow should be optimised to skip execution when no Rust-related files have been changed. This will reduce unnecessary CI runs and improve resource utilisation.Proposed Solution
Add path filters or conditional logic to detect Rust-related changes (e.g., changes to
*.rsfiles,Cargo.toml,Cargo.lock, Rust-related directories) before running the workflow.Context
This optimisation was suggested following the addition of the Rust lock file validation step in PR #1448.
References
Cargo.lock); Add check to GH workflow. #1448Cargo.lock); Add check to GH workflow. #1448 (comment)Reported by: @junhaoliao