Judging by https://perf.rust-lang.org, from-scratch builds with incremental compilation enabled adds about 15–20% overhead compared to disabled. The initial build needs to write out more intermediate state in order for later incremental builds to take advantage of it.
In a CI situation, it would be extremely unusual for there to be a later incremental build within the same job. The jobs are not making changes to source code and rebuilding.
However, workflows that cache the target directory across runs might be benefiting from incremental compilation.
Judging by https://perf.rust-lang.org, from-scratch builds with incremental compilation enabled adds about 15–20% overhead compared to disabled. The initial build needs to write out more intermediate state in order for later incremental builds to take advantage of it.
In a CI situation, it would be extremely unusual for there to be a later incremental build within the same job. The jobs are not making changes to source code and rebuilding.
However, workflows that cache the
targetdirectory across runs might be benefiting from incremental compilation.