-
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?
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 |
---|---|---|
|
@@ -17,14 +17,13 @@ | |
|
||
name: Prepare Rust Builder | ||
description: 'Prepare Rust Build Environment' | ||
inputs: | ||
rust-version: | ||
description: 'version of rust to install (e.g. stable)' | ||
required: true | ||
default: 'stable' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
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 need to checkout the code in the builder setup to get the |
||
with: | ||
submodules: true | ||
fetch-depth: 1 | ||
- name: Install Build Dependencies | ||
shell: bash | ||
run: | | ||
|
@@ -36,9 +35,9 @@ runs: | |
# rustfmt is needed for the substrait build script | ||
run: | | ||
RETRY=("ci/scripts/retry" timeout 120) | ||
echo "Installing ${{ inputs.rust-version }}" | ||
"${RETRY[@]}" rustup toolchain install ${{ inputs.rust-version }} | ||
"${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 commentThe reason will be displayed to describe this comment to others. Learn more. now this installs the version of rust specified by |
||
"${RETRY[@]}" rustup component add rustfmt | ||
- name: Configure rust runtime env | ||
uses: ./.github/actions/setup-rust-runtime | ||
|
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