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: Set default rust toolchain to MSRV for MSRV job #555
Conversation
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.
well, that explains why MSRV was not really enforced :-(
I believe it was me breaking that at some point…
@@ -15,7 +15,7 @@ jobs: | |||
- name: Checkout sources | |||
uses: actions/checkout@v3 | |||
|
|||
- run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy --no-self-update |
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.
We want the latest stable version whenever that is available. We don’t want to be at the mercy of whenever github feels like updating their Runners.
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.
They have weekly cadence though, so not sure if it's that crucial tbh.
If we want to update it though, we'll need to change the default everywhere as well, as it's tied to version installed in the image.
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
RUSTFLAGS: -Dwarnings |
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.
While it sure is a pain that we have failing builds on every Rust update, that is quite intentional and we do want to deny warnings.
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.
setting RUSTFLAGS: -Dwarnings is redundant, as all make jobs that are used already set it there
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.
We do have a few steps that are not using the makefile targets
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.
Iiiii don't belive so? I removed it from workflows that run make checkall,
make checkfastand
make testfast. All of which already set
-Dwarnings. (
make testfaildoesnt but in this case
checkfast` would fail first)
rustup toolchain install stable
calls are redundant due toubuntu-latest
already containins up-to-date stable - https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md#rust-toolsRUSTFLAGS: -Dwarnings
is redundant, as allmake
jobs that are used already set it therecomponent add
usesstable
by defaultrustup default ${{ matrix.rust }}
for MSRV tests is required, as otherwisestable
is used