-
Notifications
You must be signed in to change notification settings - Fork 42
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
CI: Improve msrv checking and speedup CI #74
Conversation
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
macos-14 uses M1, it's much faster than macos-latest Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
So that it knows which specific version is used to invalidate caching. Also, on 1.63 fetching from registry is especially slow, running `cargo +stable update` befoe this can speed it up a little bit. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
It uses `-Zminimal` to use minimal versions. It also avoids compilation to speedup CI as much as possible. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For CI. I don't deal enough with this to speak to the test changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this. Glad to see the huge improvement on CI time!
I'd love to have a clearer git history. It doesn't mean we need to squash commits. Just let it make more sense and remove some intermediate commits during the development.
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given both CI and test are reviewed, I am going to merge this. Thank you!
Improve msrv CI:
Cargo.lock
created usingcargo +nightly -Zminimal-versions update
and used in msrv job to make sure it tests against the minimal version of dependencies.cargo-check
to check for msrv (in a new job), runningcargo-test
would also pull in test dependencies and test codeThis PR also speeds up the CI from 5m down to 1m (when make and dependencies are cached).