@@ -54,11 +54,19 @@ jobs:
5454 if : github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository
5555 strategy :
5656 matrix :
57- rust : [stable, nightly, "1.86"] # 1.85 is the MSRV
57+ rust : [stable, nightly, MSRV]
5858 os : [ubuntu-latest, macos-latest, windows-latest]
59+ include :
60+ - rust : stable
61+ version : stable
62+ - rust : nightly
63+ version : nightly
64+ - rust : MSRV
65+ version : " 1.86" # MSRV
5966
6067 name : Build & test
6168 runs-on : ${{ matrix.os }}
69+ continue-on-error : ${{ matrix.rust == 'nightly' }}
6270 needs : ["check"]
6371 steps :
6472 - name : Checkout source
6775 - name : Install Rust toolchain
6876 uses : dtolnay/rust-toolchain@master
6977 with :
70- toolchain : ${{ matrix.rust }}
78+ toolchain : ${{ matrix.version }}
7179
7280 - name : Cache Cargo registry
7381 uses : Swatinem/rust-cache@v2
@@ -84,19 +92,19 @@ jobs:
8492 tool : nextest
8593
8694 - name : Fetch dependencies
87- run : cargo +${{ matrix.rust }} fetch --locked
95+ run : cargo +${{ matrix.version }} fetch --locked
8896
8997 - name : Build
90- run : cargo +${{ matrix.rust }} build --all-features --tests
98+ run : cargo +${{ matrix.version }} build --all-features --tests
9199
92100 - name : Test
93- run : cargo +${{ matrix.rust }} nextest run --all-features
101+ run : cargo +${{ matrix.version }} nextest run --all-features
94102
95103 # Nextest does not support doc tests as in stable Rust
96104 # they are not exposed in the same way as normal tests.
97105 # https://github.com/nextest-rs/nextest/issues/16
98106 - name : Test docs
99- run : cargo +${{ matrix.rust }} test --all-features --doc
107+ run : cargo +${{ matrix.version }} test --all-features --doc
100108
101109 clippy :
102110 if : github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository
0 commit comments