21
21
CARGO_TERM_COLOR: always
22
22
CARGO_INCREMENTAL: '0'
23
23
CARGO_PROFILE_DEV_DEBUG: '0'
24
+ RUST_TOOLCHAIN_VERSION: "{[ rust_version }]"
24
25
RUSTFLAGS: "-D warnings"
25
26
RUSTDOCFLAGS: "-D warnings"
26
27
RUST_LOG: "info"
44
45
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
45
46
with:
46
47
submodules: recursive
47
- - uses: dtolnay/rust-toolchain@{[ rust_version }]
48
+ - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
49
+ with:
50
+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
48
51
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
49
52
with:
50
53
key: udeps
@@ -122,7 +125,9 @@ jobs:
122
125
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
123
126
with:
124
127
submodules: recursive
125
- - uses: dtolnay/rust-toolchain@{[ rust_version }]
128
+ - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
129
+ with:
130
+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
126
131
with:
127
132
components: rustfmt
128
133
- run: cargo fmt --all -- --check
@@ -139,7 +144,9 @@ jobs:
139
144
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
140
145
with:
141
146
submodules: recursive
142
- - uses: dtolnay/rust-toolchain@{[ rust_version }]
147
+ - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
148
+ with:
149
+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
143
150
with:
144
151
components: clippy
145
152
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
@@ -174,7 +181,9 @@ jobs:
174
181
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
175
182
with:
176
183
submodules: recursive
177
- - uses: dtolnay/rust-toolchain@{[ rust_version }]
184
+ - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
185
+ with:
186
+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
178
187
with:
179
188
components: rustfmt
180
189
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
@@ -195,7 +204,9 @@ jobs:
195
204
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
196
205
with:
197
206
submodules: recursive
198
- - uses: dtolnay/rust-toolchain@{[ rust_version }]
207
+ - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
208
+ with:
209
+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
199
210
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
200
211
with:
201
212
key: test
@@ -258,7 +269,9 @@ jobs:
258
269
with:
259
270
version: v3.13.3
260
271
- name: Set up cargo
261
- uses: dtolnay/rust-toolchain@{[ rust_version }]
272
+ uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
273
+ with:
274
+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
262
275
- uses: Swatinem/rust-cache@3cf7f8cc28d1b4e7d01e3783be10a97d55d483c8 # v2.7.1
263
276
with:
264
277
key: charts
@@ -318,7 +331,9 @@ jobs:
318
331
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
319
332
with:
320
333
submodules: recursive
321
- - uses: dtolnay/rust-toolchain@{[ rust_version }]
334
+ - uses: dtolnay/rust-toolchain@be73d7920c329f220ce78e0234b8f96b7ae60248
335
+ with:
336
+ toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }}
322
337
with:
323
338
components: rustfmt
324
339
# This step checks if the current run was triggered by a push to a pr (or a pr being created).
0 commit comments