Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
In the Rust CI workflows (rust_build.sh, rust_test.sh), there are some build options used that are at odds with each other, resulting in multiple redundant builds where a smaller number could do the same job. The following tweaks, at minimal, could reduce this, speeding up build times:
- Ensure that RUSTFLAGS="-D warnings" is used for all cargo commands. Currently, it's only used for a single command (the build --all-targets in rust_build.sh). Subsuquent runs of cargo will ignore this first build, since RUSTFLAGS has changed.
- Don't run examples in release mode, as that would force a new (and slower) rebuild, when the examples have already been built in debug mode.
Attachments
Issue Links
- links to