Skip to content
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

Merged
merged 4 commits into from Feb 24, 2023
Merged

Conversation

kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek commented Feb 23, 2023

.github/workflows/ci.yml Outdated Show resolved Hide resolved
Copy link
Member

@Swatinem Swatinem left a 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…

@kamilogorek kamilogorek enabled auto-merge (squash) February 23, 2023 12:35
@@ -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
Copy link
Member

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.

Copy link
Contributor Author

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.

.github/workflows/ci.yml Outdated Show resolved Hide resolved
runs-on: ${{ matrix.os }}

env:
RUSTFLAGS: -Dwarnings
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Contributor Author

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 checkfastandmake testfast. All of which already set -Dwarnings. (make testfaildoesnt but in this casecheckfast` would fail first)

.github/workflows/ci.yml Outdated Show resolved Hide resolved
@kamilogorek kamilogorek merged commit 569b0d9 into master Feb 24, 2023
@kamilogorek kamilogorek deleted the ci-msrv branch February 24, 2023 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants