Skip to content

Commit 31273ac

Browse files
committed
lock nightly version
1 parent 06266a5 commit 31273ac

File tree

2 files changed

+45
-10
lines changed

2 files changed

+45
-10
lines changed

.github/workflows/scheduled.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,21 @@ concurrency:
1414
cancel-in-progress: true
1515
name: rolling
1616
jobs:
17+
vars:
18+
runs-on: ubuntu-latest
19+
# https://rust-lang.github.io/rustup-components-history/
20+
outputs:
21+
nightly: nightly-2025-10-21
22+
steps:
23+
- run: echo "dummy job"
1724
# https://twitter.com/mycoliza/status/1571295690063753218
1825
nightly:
26+
needs: vars
1927
runs-on: ubuntu-latest
20-
name: ubuntu / nightly
28+
name: ubuntu / ${{ matrix.toolchain }}
29+
strategy:
30+
matrix:
31+
toolchain: ["${{ needs.vars.outputs.nightly }}"]
2132
steps:
2233
- uses: actions/checkout@v4
2334
with:
@@ -36,8 +47,12 @@ jobs:
3647
# of this crate will generally use the latest available crates. This is subject to the standard
3748
# Cargo semver rules (i.e cargo does not update to a new major version unless explicitly told
3849
# to).
50+
needs: vars
3951
runs-on: ubuntu-latest
40-
name: ubuntu / nightly / updated
52+
name: ubuntu / ${{ matrix.toolchain }} / updated
53+
strategy:
54+
matrix:
55+
toolchain: ["${{ needs.vars.outputs.nightly }}"]
4156
# There's no point running this if no Cargo.lock was checked in in the first place, since we'd
4257
# just redo what happened in the regular test job. Unfortunately, hashFiles only works in if on
4358
# steps, so we repeat it.
@@ -47,7 +62,9 @@ jobs:
4762
submodules: true
4863
- name: Install nightly
4964
if: hashFiles('Cargo.lock') != ''
50-
uses: dtolnay/rust-toolchain@nightly
65+
uses: dtolnay/rust-toolchain@master
66+
with:
67+
toolchain: ${{ matrix.toolchain }}
5168
- name: cargo update
5269
if: hashFiles('Cargo.lock') != ''
5370
run: cargo update

.github/workflows/test.yml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,20 @@ concurrency:
1616
cancel-in-progress: true
1717
name: test
1818
jobs:
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.
@@ -71,8 +87,10 @@ jobs:
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

Comments
 (0)