We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02be93d commit 9b859d3Copy full SHA for 9b859d3
action.yml
@@ -179,6 +179,10 @@ runs:
179
# rustup toolchain install is the new explicit way
180
# https://github.com/rust-lang/rustup/issues/3635#issuecomment-2343511297
181
rustup show active-toolchain || rustup toolchain install
182
+ if ! rustup default &>/dev/null; then
183
+ TOOLCHAIN=$(rustup show active-toolchain 2>/dev/null | awk '{print $1}' | sed 's/-.*//')
184
+ [[ -n "$TOOLCHAIN" ]] && rustup default "$TOOLCHAIN" || rustup default stable
185
+ fi
186
if [[ -n $components ]]; then
187
rustup component add ${components//,/ }
188
fi
0 commit comments