diff options
author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-06-09 10:33:03 +0900 |
---|---|---|
committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-06-09 10:33:03 +0900 |
commit | 79fc7016cd89a3f3268375487432b4a5d587e136 (patch) | |
tree | 2a1624936bcf7022bae0c8ab99f5809ff7b6a50e | |
parent | 34a4f11a2e53862d1c956e954a89d605ffbfbe42 (diff) | |
download | rust-libc-79fc7016cd89a3f3268375487432b4a5d587e136.tar.gz |
Run rustup self-update as a separated step
-rw-r--r-- | .github/workflows/bors.yml | 3 | ||||
-rw-r--r-- | .github/workflows/main.yml | 3 | ||||
-rw-r--r-- | ci/install-rust.sh | 1 |
3 files changed, 6 insertions, 1 deletions
diff --git a/.github/workflows/bors.yml b/.github/workflows/bors.yml index 5073de9993..241940a823 100644 --- a/.github/workflows/bors.yml +++ b/.github/workflows/bors.yml @@ -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 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6b5f5daf97..06f02c2660 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/ci/install-rust.sh b/ci/install-rust.sh index 377f0d0cf0..dcd24b88ef 100644 --- a/ci/install-rust.sh +++ b/ci/install-rust.sh @@ -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" |