File tree 1 file changed +17
-2
lines changed
1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,17 @@ on: [push, pull_request]
3
3
name : Continuous integration
4
4
5
5
jobs :
6
+ Prepare :
7
+ runs-on : ubuntu-24.04
8
+ outputs :
9
+ nightly_version : ${{ steps.read_toolchain.outputs.nightly_version }}
10
+ steps :
11
+ - name : " Checkout repo"
12
+ uses : actions/checkout@v4
13
+ - name : " Read nightly version"
14
+ id : read_toolchain
15
+ run : echo "nightly_version=$(cat nightly-version)" >> $GITHUB_OUTPUT
16
+
6
17
fmt :
7
18
name : Rustfmt
8
19
runs-on : ubuntu-latest
@@ -46,14 +57,15 @@ jobs:
46
57
47
58
test :
48
59
name : Tests
60
+ needs : Prepare
49
61
runs-on : ubuntu-latest
50
62
strategy :
51
63
fail-fast : false
52
64
matrix :
53
65
rust :
54
66
- stable
55
67
- beta
56
- - nightly
68
+ - ${{ needs.Prepare.outputs.nightly_version }}
57
69
- 1.78.0
58
70
steps :
59
71
- name : Checkout Crate
@@ -122,12 +134,15 @@ jobs:
122
134
123
135
docs :
124
136
name : Docs
137
+ needs : Prepare
125
138
runs-on : ubuntu-latest
126
139
steps :
127
140
- name : Checkout Crate
128
141
uses : actions/checkout@v4
129
142
- name : Checkout Toolchain
130
- uses : dtolnay/rust-toolchain@nightly
143
+ uses : dtolnay/rust-toolchain@v1
144
+ with :
145
+ toolchain : ${{ needs.Prepare.outputs.nightly_version }}
131
146
- name : Check that documentation builds without errors
132
147
env :
133
148
RUSTDOCFLAGS : " --cfg docsrs -D warnings -D rustdoc::broken-intra-doc-links"
You can’t perform that action at this time.
0 commit comments