Skip to content

Commit ff812e6

Browse files
committed
always install rust
1 parent 405d218 commit ff812e6

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

action.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@ runs:
2626
rm -f /home/runner/.cargo/bin/cargo-fmt
2727
shell: bash
2828

29-
- if: runner.os != 'Windows'
30-
run: |
31-
: install rustup if needed
32-
if ! command -v rustup &> /dev/null ; then
33-
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
34-
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
35-
fi
29+
- run: |
30+
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
31+
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
3632
shell: bash
3733
3834
- if: "${{ inputs.components == '' }}"

0 commit comments

Comments
 (0)