diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 724d858a3..9ceb50f57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,8 +52,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install Rust - # --no-self-update is necessary because the windows environment cannot self-update rustup.exe. - run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} + # `rustup self update` is necessary because the windows environment cannot self-update rustup.exe by `rustup update`. + run: rustup self update && rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} - name: Test run: ./ci/test.sh