From f6aae142eaa6a73b4e3cde18d054f0976d262c06 Mon Sep 17 00:00:00 2001 From: tyranron Date: Mon, 19 Dec 2022 09:09:41 +0100 Subject: [PATCH] Fix Rust toolchain defaulting on CI --- .github/workflows/ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c90ff78e..5bbe6803 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -107,7 +107,6 @@ jobs: - uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} - - run: rustup default ${{ matrix.toolchain }} - run: cargo check -p example_${{ matrix.example }} @@ -139,10 +138,10 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@v1 with: - toolchain: stable + toolchain: nightly - uses: dtolnay/rust-toolchain@v1 with: - toolchain: nightly + toolchain: stable - run: cargo +nightly update -Z minimal-versions @@ -178,11 +177,10 @@ jobs: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@v1 with: - toolchain: ${{ matrix.msrv }} - - run: rustup default ${{ matrix.msrv }} + toolchain: nightly - uses: dtolnay/rust-toolchain@v1 with: - toolchain: nightly + toolchain: ${{ matrix.msrv }} - run: cargo +nightly update -Z minimal-versions @@ -246,7 +244,6 @@ jobs: with: toolchain: ${{ matrix.toolchain }} components: rust-src - - run: rustup default ${{ matrix.toolchain }} - run: cargo install cargo-careful if: ${{ matrix.toolchain == 'nightly' }} @@ -274,7 +271,6 @@ jobs: - uses: dtolnay/rust-toolchain@v1 with: toolchain: ${{ matrix.toolchain }} - - run: rustup default ${{ matrix.toolchain }} - uses: peaceiris/actions-mdbook@v1 - run: make test.book @@ -297,7 +293,6 @@ jobs: with: toolchain: ${{ matrix.toolchain }} target: wasm32-unknown-unknown - - run: rustup default ${{ matrix.toolchain }} - run: cargo check --target wasm32-unknown-unknown -p ${{ matrix.crate }}