Merge pull request #9 from dtolnay/rustup

Move title of rustup install step into the run script
This commit is contained in:
David Tolnay 2022-06-04 16:43:08 -07:00 committed by GitHub
commit a11e214f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,8 +31,8 @@ runs:
targets: ${{inputs.target}}
components: ${{inputs.components}}
shell: bash
- name: "Install rustup if needed"
run: |
- run: |
: install rustup if needed
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
echo "${CARGO_HOME:-~/.cargo}/bin" >> $GITHUB_PATH