Run rustup self-update as a separated step

This commit is contained in:
Yuki Okushi 2021-06-09 10:33:03 +09:00
parent 34a4f11a2e
commit 79fc7016cd
3 changed files with 6 additions and 1 deletions

View file

@ -72,6 +72,9 @@ jobs:
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
- uses: actions/checkout@v2
- name: Self-update rustup
run: rustup self update
shell: bash
- name: Setup Rust toolchain
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
shell: bash

View file

@ -64,6 +64,9 @@ jobs:
- target: i686-pc-windows-msvc
steps:
- uses: actions/checkout@v2
- name: Self-update rustup
run: rustup self update
shell: bash
- name: Setup Rust toolchain
run: TARGET=${{ matrix.target }} sh ./ci/install-rust.sh
shell: bash

View file

@ -12,7 +12,6 @@ else
fi
if [ "$OS" = "windows" ]; then
: "${TARGET?The TARGET environment variable must be set.}"
rustup self update
rustup set profile minimal
rustup update --force $toolchain-"$TARGET"
rustup default $toolchain-"$TARGET"