Skip to content

Commit

Permalink
always install rust
Browse files Browse the repository at this point in the history
  • Loading branch information
sbtaylor15 committed Feb 7, 2023
1 parent 405d218 commit ff812e6
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ runs:
rm -f /home/runner/.cargo/bin/cargo-fmt
shell: bash

- if: runner.os != 'Windows'
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:-$HOME/.cargo}/bin" >> $GITHUB_PATH
fi
- run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
shell: bash
- if: "${{ inputs.components == '' }}"
Expand Down

0 comments on commit ff812e6

Please sign in to comment.