@@ -16,12 +16,20 @@ concurrency:
1616 cancel-in-progress : true
1717name : test
1818jobs :
19+ vars :
20+ runs-on : ubuntu-latest
21+ # https://rust-lang.github.io/rustup-components-history/
22+ outputs :
23+ nightly : nightly-2025-10-21
24+ steps :
25+ - run : echo "dummy job"
1926 required :
27+ needs : vars
2028 runs-on : ubuntu-latest
2129 name : ubuntu / ${{ matrix.toolchain }}
2230 strategy :
2331 matrix :
24- toolchain : [nightly]
32+ toolchain : ["${{ needs.vars.outputs. nightly }}" ]
2533 steps :
2634 - uses : actions/checkout@v4
2735 with :
@@ -41,26 +49,34 @@ jobs:
4149 - name : cargo test --doc
4250 run : cargo test --locked --all-features --doc
4351 direct-minimal :
52+ needs : vars
53+ strategy :
54+ matrix :
55+ toolchain : ["${{ needs.vars.outputs.nightly }}"]
4456 runs-on : ubuntu-latest
45- name : ubuntu / nightly / direct-minimal-versions
57+ name : ubuntu / ${{ matrix.toolchain }} / direct-minimal-versions
4658 steps :
4759 - uses : actions/checkout@v4
4860 with :
4961 submodules : true
50- - name : Install nightly
51- uses : dtolnay/rust-toolchain@nightly
62+ - name : Install ${{ matrix.toolchain }}
63+ uses : dtolnay/rust-toolchain@master
64+ with :
65+ toolchain : ${{ matrix.toolchain }}
5266 - name : cargo update -Zdirect-minimal-versions
5367 run : cargo update -Zdirect-minimal-versions
5468 - name : cargo test
5569 run : cargo test --locked --all-features --all-targets
5670 os-check :
5771 # run cargo test on mac and windows
72+ needs : vars
5873 runs-on : ${{ matrix.os }}
59- name : ${{ matrix.os }} / nightly
74+ name : ${{ matrix.os }} / ${{ matrix.toolchain }}
6075 strategy :
6176 fail-fast : false
6277 matrix :
6378 os : [macos-latest, windows-latest]
79+ toolchain : ["${{ vars.needs.outputs.nightly }}"]
6480 steps :
6581 # if your project needs OpenSSL, uncomment this to fix Windows builds.
6682 # it's commented out by default as the install command takes 5-10m.
7187 - uses : actions/checkout@v4
7288 with :
7389 submodules : true
74- - name : Install nightly
75- uses : dtolnay/rust-toolchain@nightly
90+ - name : Install ${{ matrix.toolchain }}
91+ uses : dtolnay/rust-toolchain@master
92+ with :
93+ toolhain : ${{ matrix.toolchain }}
7694 - name : cargo generate-lockfile
7795 if : hashFiles('Cargo.lock') == ''
7896 run : cargo generate-lockfile
0 commit comments