Fix Rust toolchain defaulting on CI

This commit is contained in:
tyranron 2022-12-19 09:09:41 +01:00
parent 4737622052
commit f6aae142ea
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0

View file

@ -107,7 +107,6 @@ jobs:
- uses: dtolnay/rust-toolchain@v1 - uses: dtolnay/rust-toolchain@v1
with: with:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
- run: rustup default ${{ matrix.toolchain }}
- run: cargo check -p example_${{ matrix.example }} - run: cargo check -p example_${{ matrix.example }}
@ -139,10 +138,10 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1 - uses: dtolnay/rust-toolchain@v1
with: with:
toolchain: stable toolchain: nightly
- uses: dtolnay/rust-toolchain@v1 - uses: dtolnay/rust-toolchain@v1
with: with:
toolchain: nightly toolchain: stable
- run: cargo +nightly update -Z minimal-versions - run: cargo +nightly update -Z minimal-versions
@ -178,11 +177,10 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@v1 - uses: dtolnay/rust-toolchain@v1
with: with:
toolchain: ${{ matrix.msrv }} toolchain: nightly
- run: rustup default ${{ matrix.msrv }}
- uses: dtolnay/rust-toolchain@v1 - uses: dtolnay/rust-toolchain@v1
with: with:
toolchain: nightly toolchain: ${{ matrix.msrv }}
- run: cargo +nightly update -Z minimal-versions - run: cargo +nightly update -Z minimal-versions
@ -246,7 +244,6 @@ jobs:
with: with:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
components: rust-src components: rust-src
- run: rustup default ${{ matrix.toolchain }}
- run: cargo install cargo-careful - run: cargo install cargo-careful
if: ${{ matrix.toolchain == 'nightly' }} if: ${{ matrix.toolchain == 'nightly' }}
@ -274,7 +271,6 @@ jobs:
- uses: dtolnay/rust-toolchain@v1 - uses: dtolnay/rust-toolchain@v1
with: with:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
- run: rustup default ${{ matrix.toolchain }}
- uses: peaceiris/actions-mdbook@v1 - uses: peaceiris/actions-mdbook@v1
- run: make test.book - run: make test.book
@ -297,7 +293,6 @@ jobs:
with: with:
toolchain: ${{ matrix.toolchain }} toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown target: wasm32-unknown-unknown
- run: rustup default ${{ matrix.toolchain }}
- run: cargo check --target wasm32-unknown-unknown -p ${{ matrix.crate }} - run: cargo check --target wasm32-unknown-unknown -p ${{ matrix.crate }}