summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/bors.yml3
-rw-r--r--.github/workflows/main.yml3
-rw-r--r--ci/install-rust.sh1
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"