Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR separates CI jobs for better parallelism across runners. There are now 5 separate jobs that run. A build and test for stable and nightly, as well as a "clean" job. Clean includes both
cargo fmt
andcargo clippy
as they are both quciker than normalcargo check
orcargo test
, and so they will complete around the same time.As we can see below, there were definitely some issues with adding caching to CI vanilla. There were a few improvements I added:
-C debuginfo=0
, which decreased the size further. I don't think this will have negative effects withcargo test
orcargo check
.target
folder. Normally, both the registry and the git folder are saved. These can be redownloaded fast enough, and would just clutter the zip with more small files to open upon downloading the cache.Likely CI will change further with the addition of more steps, however, this should be a good starting point for separation of jobs. Some unknowns that I will have to examine once this is running on master:
Cargo.lock
changes, so another busting method might be needed for nightlies.