-
Notifications
You must be signed in to change notification settings - Fork 81
Improvements to the CI coverage #485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
6788fab to
0351c25
Compare
Good idea on doing format and clippy up front.
It allows running parallell builds for multiple target and feature combinations, greatly saving time in CI.
It is a bit home grown, but it's used by embassy as well, and the improvements it brings far outweighs the downsides.
It should be automatically downloading it if it can't find it, what issue are you seeing? |
It's linux only? I cannot run it too, |
|
I'll add changes on Monday, most likely:
Ok. Will change the
Thanks. As long as it has benefits. Would this information have been available anywhere? Didn't find it - cargo batch README could state why it's different from mainline Cargo. But... that's out of focus, here!
Edit: I saw 300/1640 and thought it's only building Will let it run, now. |
Ah, right! In that case, you can compile and install it like this:
|
You should be able to use the pre-compiled binary from the cargo-batch release then I think? |
130cf45 to
659a184
Compare
659a184 to
2a1b44b
Compare
|
My latest addition seems to have Please check the changes and comment them. Moving the In the mean time, the current CI setup e.g. grows |
|
Maybe https://github.com/marketplace/actions/maximize-build-disk-space would work? |
I noticed, while doing #474 that not all corners of the code base got the same testing by CI. This PR is based on the assumptions that:
Note: The above is ideal (not realistic). But it can be seen as something to aim for. In particular, the PR adds test coverage for the
securityfeature.I would also like to reorder the
ci.shcommands, lifting somecargocommands from belowcargo-batchsection to the tip. The main reason for this is to fail fast if there are any formatting glitches (cargo fmt). I believe many PRs might have them; testing them doesn't require any downloads, so it would be a fast sanity check up-front. This, however, needs an edit in the.github/workflows/ci.yaml, adding (perhaps) the- uses: dtolnay/rust-toolchain@nightlytobuild. It's already used inbinary-size. Without that,cargois not available until it's been installed by the commands inci.sh.Furthermore, what is this
cargo batch?Looking at https://github.com/embassy-rs/cargo-batch, it seems a little home-grown. Would like to see a comment in
ci.shas to what gap it fills that standardcargocouldn't cater to.I'd really like to run the
ci.shlocally, but it turned out too difficult. Thanks tocargo-batch.