-
-
Notifications
You must be signed in to change notification settings - Fork 168
ci: Set default rust toolchain to MSRV for MSRV job #555
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
- run: rustup component add rustfmt clippy | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
|
@@ -30,20 +30,14 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
rust: [stable] | ||
|
||
name: Check feature permutations using Rust ${{ matrix.rust }} on ${{ matrix.os }} | ||
name: Check feature permutations using Rust stable on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
RUSTFLAGS: -Dwarnings | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. Iiiii don't belive so? I removed it from workflows that run |
||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- run: rustup toolchain install ${{ matrix.rust }} --profile minimal --no-self-update | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- run: make checkall | ||
|
@@ -53,17 +47,14 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
rust: [stable] | ||
|
||
name: Test using Rust ${{ matrix.rust }} on ${{ matrix.os }} | ||
name: Test using Rust stable on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- run: rustup toolchain install ${{ matrix.rust }} --profile minimal --no-self-update | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run cargo test | ||
|
@@ -74,19 +65,19 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
rust: [1.60.0] | ||
rust: [1.66.0] | ||
|
||
name: Check / Test MSRV on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
RUSTFLAGS: -Dwarnings | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- run: rustup toolchain install ${{ matrix.rust }} --profile minimal --no-self-update | ||
- name: Install rust ${{ matrix.rust }} toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} --profile minimal --no-self-update | ||
rustup default ${{ matrix.rust }} | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
|
@@ -101,7 +92,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- run: rustup toolchain install stable --profile minimal --component llvm-tools-preview --no-self-update | ||
- run: rustup component add llvm-tools-preview | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
|
@@ -123,7 +114,7 @@ jobs: | |
- name: Checkout sources | ||
uses: actions/checkout@v3 | ||
|
||
- run: rustup toolchain install stable --profile minimal --component rust-docs --no-self-update | ||
- run: rustup component add rust-docs | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
msrv = "1.60.0" | ||
msrv = "1.66.0" |
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.