diff --git a/.github/workflows/_build-rust.yml b/.github/workflows/_build-rust.yml index ff06f962..dd762e05 100644 --- a/.github/workflows/_build-rust.yml +++ b/.github/workflows/_build-rust.yml @@ -62,14 +62,15 @@ jobs: steps: - name: Check out uses: actions/checkout@v4 - - name: Install Rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ inputs.rust-version }} - override: true - components: clippy, rustfmt - target: ${{ inputs.rust-target }} + - name: Setup Rust toolchain + run: | + rustup toolchain install ${{ inputs.rust-version }} \ + --profile minimal \ + --component clippy rustfmt \ + --target ${{ inputs.rust-target }} \ + --no-self-update + --force + rustup override set ${{ inputs.rust-version }} - name: Set up cargo cache uses: actions/cache@v3 continue-on-error: false