3
0
Fork 0
mirror of https://github.com/dtolnay/rust-toolchain.git synced 2024-11-22 08:49:30 +01:00

Move title of rustup install step into the run script

This commit is contained in:
David Tolnay 2022-06-04 16:41:30 -07:00
parent a8259c0b23
commit 2dcd099451
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -31,8 +31,8 @@ runs:
targets: ${{inputs.target}} targets: ${{inputs.target}}
components: ${{inputs.components}} components: ${{inputs.components}}
shell: bash shell: bash
- name: "Install rustup if needed" - run: |
run: | : install rustup if needed
if ! command -v rustup &> /dev/null ; then if ! command -v rustup &> /dev/null ; then
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
echo "${CARGO_HOME:-~/.cargo}/bin" >> $GITHUB_PATH echo "${CARGO_HOME:-~/.cargo}/bin" >> $GITHUB_PATH