Skip to content

Commit

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

- run: |
- 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
Expand All @@ -38,15 +39,15 @@ runs:
name: Install Rust toolchain
id: toolchain
run: |
rustup toolchain install ${{ env.RUST_VERSION }}
rustup toolchain install ${{ env.RUST_VERSION }} --no-self-update
rustup default ${{ env.RUST_VERSION }}
shell: bash

- if: "${{ inputs.components != '' }}"
name: Install Rust toolchain and components
id: toolchain_components
run: |
rustup toolchain install ${{ env.RUST_VERSION }} --component ${{ inputs.components }}
rustup toolchain install ${{ env.RUST_VERSION }} --component ${{ inputs.components }} --no-self-update
rustup default ${{ env.RUST_VERSION }}
shell: bash

Expand Down

0 comments on commit 405d218

Please sign in to comment.