24
24
runs-on : ubuntu-latest
25
25
steps :
26
26
- uses : actions/checkout@v3
27
- - uses : actions-rs/ toolchain@v1
27
+ - uses : dtolnay/rust- toolchain@v1
28
28
with :
29
- profile : minimal
30
29
toolchain : stable
31
30
components : clippy
32
31
36
35
runs-on : ubuntu-latest
37
36
steps :
38
37
- uses : actions/checkout@v3
39
- - uses : actions-rs/ toolchain@v1
38
+ - uses : dtolnay/rust- toolchain@v1
40
39
with :
41
- profile : minimal
42
40
toolchain : nightly
43
41
components : rustfmt
44
42
@@ -61,15 +59,12 @@ jobs:
61
59
runs-on : ubuntu-latest
62
60
steps :
63
61
- uses : actions/checkout@v3
64
- - uses : actions-rs/ toolchain@v1
62
+ - uses : dtolnay/rust- toolchain@v1
65
63
with :
66
- profile : minimal
67
- toolchain : nightly
68
- - uses : actions-rs/toolchain@v1
69
- with :
70
- profile : minimal
71
64
toolchain : stable
72
- override : true
65
+ - uses : dtolnay/rust-toolchain@v1
66
+ with :
67
+ toolchain : nightly
73
68
74
69
- run : cargo +nightly update -Z minimal-versions
75
70
81
76
RUSTFLAGS : -D warnings
82
77
83
78
fuzz :
84
- name : Fuzzing
85
79
strategy :
86
80
fail-fast : false
87
81
matrix :
94
88
runs-on : ubuntu-latest
95
89
steps :
96
90
- uses : actions/checkout@v3
97
- - uses : actions-rs/ toolchain@v1
91
+ - uses : dtolnay/rust- toolchain@v1
98
92
with :
99
- profile : minimal
100
93
toolchain : nightly
101
94
102
95
- run : cargo install cargo-fuzz
@@ -117,15 +110,13 @@ jobs:
117
110
runs-on : ${{ matrix.os }}-latest
118
111
steps :
119
112
- uses : actions/checkout@v3
120
- - uses : actions-rs/ toolchain@v1
113
+ - uses : dtolnay/rust- toolchain@v1
121
114
with :
122
- profile : minimal
123
- toolchain : nightly
124
- - uses : actions-rs/toolchain@v1
125
- with :
126
- profile : minimal
127
115
toolchain : ${{ matrix.msrv }}
128
- override : true
116
+ - run : rustup default ${{ matrix.msrv }}
117
+ - uses : dtolnay/rust-toolchain@v1
118
+ with :
119
+ toolchain : nightly
129
120
130
121
- run : cargo +nightly update -Z minimal-versions
131
122
@@ -146,16 +137,16 @@ jobs:
146
137
runs-on : ${{ matrix.os }}-latest
147
138
steps :
148
139
- uses : actions/checkout@v3
149
- - uses : actions-rs/ toolchain@v1
140
+ - uses : dtolnay/rust- toolchain@v1
150
141
with :
151
- profile : minimal
152
142
toolchain : ${{ matrix.toolchain }}
153
- override : true
143
+ - run : rustup default ${{ matrix.toolchain }}
154
144
155
145
- run : make test.cargo
156
146
157
147
158
148
149
+
159
150
# ################
160
151
# Documentation #
161
152
# ################
@@ -164,9 +155,8 @@ jobs:
164
155
runs-on : ubuntu-latest
165
156
steps :
166
157
- uses : actions/checkout@v3
167
- - uses : actions-rs/ toolchain@v1
158
+ - uses : dtolnay/rust- toolchain@v1
168
159
with :
169
- profile : minimal
170
160
toolchain : nightly
171
161
172
162
- run : make cargo.doc private=yes docsrs=yes open=no
@@ -179,23 +169,22 @@ jobs:
179
169
# ############
180
170
181
171
release-crate :
182
- name : Release on crates.io
172
+ name : release on crates.io
183
173
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
184
174
needs : ["release-github"]
185
175
runs-on : ubuntu-latest
186
176
steps :
187
177
- uses : actions/checkout@v3
188
- - uses : actions-rs/ toolchain@v1
178
+ - uses : dtolnay/rust- toolchain@v1
189
179
with :
190
- profile : minimal
191
180
toolchain : stable
192
181
193
182
- name : Publish `cucumber-expressions` crate
194
183
run : cargo publish -p cucumber-expressions
195
184
--token ${{ secrets.CRATESIO_TOKEN }}
196
185
197
186
release-github :
198
- name : Release on GitHub
187
+ name : release on GitHub
199
188
if : ${{ startsWith(github.ref, 'refs/tags/v') }}
200
189
needs :
201
190
- clippy
0 commit comments