-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Always install correct version of rust in CI #14992
base: main
Are you sure you want to change the base?
Conversation
@@ -17,14 +17,13 @@ | |||
|
|||
name: Prepare Rust Builder | |||
description: 'Prepare Rust Build Environment' | |||
inputs: |
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.
This was only ever called with stable
so the parameter is unecessary
"${RETRY[@]}" rustup default ${{ inputs.rust-version }} | ||
echo "Installing Rust ..." | ||
# install toolchain specified by rust-toolchain.toml | ||
"${RETRY[@]}" rustup toolchain install |
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.
now this installs the version of rust specified by rust-toolchain.toml
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 |
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 need to checkout the code in the builder setup to get the rust-toolchain.toml
file
TODO remove the unused parameter to setup builder sript
Which issue does this PR close?
rustup
changes #14990Rationale for this change
We now use the rust-toolchain.toml file to specify what version of rust to use
However, the recently released
rustup
version no longer automatically installs this toolchainhttps://github.com/rust-lang/rustup/blob/f00c3d1fbcbe8d3ae2411e63ca906bc9b69e43d1/CHANGELOG.md?plain=1#L9-L17
Thus to ensure we have the correct toolchain installed, we need to run
rustup toolchain install
What changes are included in this PR?
rustup toolchain install
as part of the builder setupAre these changes tested?
By CI
Are there any user-facing changes?