Skip to content

Commit 03e94c1

Browse files
committed
Switch to dtolnay/rust-toolchain GitHub action
1 parent 977f288 commit 03e94c1

File tree

2 files changed

+21
-32
lines changed

2 files changed

+21
-32
lines changed

.github/workflows/audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v3
19-
- uses: actions-rs/toolchain@v1
19+
- uses: dtolnay/rust-toolchain@v1
2020
with:
21-
profile: minimal
2221
toolchain: stable
22+
2323
- uses: actions-rs/audit-check@v1
2424
with:
2525
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v3
27-
- uses: actions-rs/toolchain@v1
27+
- uses: dtolnay/rust-toolchain@v1
2828
with:
29-
profile: minimal
3029
toolchain: stable
3130
components: clippy
3231

@@ -36,9 +35,8 @@ jobs:
3635
runs-on: ubuntu-latest
3736
steps:
3837
- uses: actions/checkout@v3
39-
- uses: actions-rs/toolchain@v1
38+
- uses: dtolnay/rust-toolchain@v1
4039
with:
41-
profile: minimal
4240
toolchain: nightly
4341
components: rustfmt
4442

@@ -61,15 +59,12 @@ jobs:
6159
runs-on: ubuntu-latest
6260
steps:
6361
- uses: actions/checkout@v3
64-
- uses: actions-rs/toolchain@v1
62+
- uses: dtolnay/rust-toolchain@v1
6563
with:
66-
profile: minimal
67-
toolchain: nightly
68-
- uses: actions-rs/toolchain@v1
69-
with:
70-
profile: minimal
7164
toolchain: stable
72-
override: true
65+
- uses: dtolnay/rust-toolchain@v1
66+
with:
67+
toolchain: nightly
7368

7469
- run: cargo +nightly update -Z minimal-versions
7570

@@ -81,7 +76,6 @@ jobs:
8176
RUSTFLAGS: -D warnings
8277

8378
fuzz:
84-
name: Fuzzing
8579
strategy:
8680
fail-fast: false
8781
matrix:
@@ -94,9 +88,8 @@ jobs:
9488
runs-on: ubuntu-latest
9589
steps:
9690
- uses: actions/checkout@v3
97-
- uses: actions-rs/toolchain@v1
91+
- uses: dtolnay/rust-toolchain@v1
9892
with:
99-
profile: minimal
10093
toolchain: nightly
10194

10295
- run: cargo install cargo-fuzz
@@ -117,15 +110,13 @@ jobs:
117110
runs-on: ${{ matrix.os }}-latest
118111
steps:
119112
- uses: actions/checkout@v3
120-
- uses: actions-rs/toolchain@v1
113+
- uses: dtolnay/rust-toolchain@v1
121114
with:
122-
profile: minimal
123-
toolchain: nightly
124-
- uses: actions-rs/toolchain@v1
125-
with:
126-
profile: minimal
127115
toolchain: ${{ matrix.msrv }}
128-
override: true
116+
- run: rustup default ${{ matrix.msrv }}
117+
- uses: dtolnay/rust-toolchain@v1
118+
with:
119+
toolchain: nightly
129120

130121
- run: cargo +nightly update -Z minimal-versions
131122

@@ -146,16 +137,16 @@ jobs:
146137
runs-on: ${{ matrix.os }}-latest
147138
steps:
148139
- uses: actions/checkout@v3
149-
- uses: actions-rs/toolchain@v1
140+
- uses: dtolnay/rust-toolchain@v1
150141
with:
151-
profile: minimal
152142
toolchain: ${{ matrix.toolchain }}
153-
override: true
143+
- run: rustup default ${{ matrix.toolchain }}
154144

155145
- run: make test.cargo
156146

157147

158148

149+
159150
#################
160151
# Documentation #
161152
#################
@@ -164,9 +155,8 @@ jobs:
164155
runs-on: ubuntu-latest
165156
steps:
166157
- uses: actions/checkout@v3
167-
- uses: actions-rs/toolchain@v1
158+
- uses: dtolnay/rust-toolchain@v1
168159
with:
169-
profile: minimal
170160
toolchain: nightly
171161

172162
- run: make cargo.doc private=yes docsrs=yes open=no
@@ -179,23 +169,22 @@ jobs:
179169
#############
180170

181171
release-crate:
182-
name: Release on crates.io
172+
name: release on crates.io
183173
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
184174
needs: ["release-github"]
185175
runs-on: ubuntu-latest
186176
steps:
187177
- uses: actions/checkout@v3
188-
- uses: actions-rs/toolchain@v1
178+
- uses: dtolnay/rust-toolchain@v1
189179
with:
190-
profile: minimal
191180
toolchain: stable
192181

193182
- name: Publish `cucumber-expressions` crate
194183
run: cargo publish -p cucumber-expressions
195184
--token ${{ secrets.CRATESIO_TOKEN }}
196185

197186
release-github:
198-
name: Release on GitHub
187+
name: release on GitHub
199188
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
200189
needs:
201190
- clippy

0 commit comments

Comments
 (0)