Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ runs:
# rustup toolchain install is the new explicit way
# https://github.com/rust-lang/rustup/issues/3635#issuecomment-2343511297
rustup show active-toolchain || rustup toolchain install
if ! rustup default &>/dev/null; then
TOOLCHAIN=$(rustup show active-toolchain 2>/dev/null | awk '{print $1}' | sed 's/-.*//')
[[ -n "$TOOLCHAIN" ]] && rustup default "$TOOLCHAIN" || rustup default stable
fi
if [[ -n $components ]]; then
rustup component add ${components//,/ }
fi
Expand Down
Loading