From ff812e6353db746d27fdef6b1df5fb17a3cc6e6b Mon Sep 17 00:00:00 2001 From: Steve Taylor Date: Tue, 7 Feb 2023 11:17:59 -0700 Subject: [PATCH] always install rust --- action.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index 15da47e..c54c261 100644 --- a/action.yml +++ b/action.yml @@ -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 == '' }}"