@@ -306,9 +306,15 @@ jobs:
306
306
307
307
- uses : camshaft/rust-cache@v1
308
308
309
+ -
uses :
SebRollen/[email protected]
310
+ id : read_toml
311
+ with :
312
+ file : ' ${{env.ROOT_PATH}}/rust-toolchain.toml'
313
+ field : ' toolchain.channel'
314
+
309
315
# Enforce that clippy's msrv matches rust-toolchain
310
316
- name : Check MSRV
311
- run : grep $(cat ${{env.ROOT_PATH}}/rust-toolchain) ${{env.ROOT_PATH}}/.clippy.toml
317
+ run : grep "${{steps.read_toml.outputs.value}}" ${{env.ROOT_PATH}}/.clippy.toml
312
318
313
319
# We don't need to format the generated files,
314
320
# but if they don't exist other code breaks.
@@ -327,15 +333,22 @@ jobs:
327
333
- uses : actions/checkout@v4
328
334
with :
329
335
submodules : true
336
+
337
+ -
uses :
SebRollen/[email protected]
338
+ id : read_toml
339
+ with :
340
+ file : ' ${{env.ROOT_PATH}}/rust-toolchain.toml'
341
+ field : ' toolchain.channel'
342
+
330
343
# Enforce crate msrv matches rust-toolchain
331
344
- name : Check MSRV of s2n-tls
332
- run : grep "rust-version = \"$(cat ${{env.ROOT_PATH}}/rust-toolchain) \"" ${{env.ROOT_PATH}}/s2n-tls/Cargo.toml
345
+ run : grep "rust-version = \"${{steps.read_toml.outputs.value}} \"" ${{env.ROOT_PATH}}/s2n-tls/Cargo.toml
333
346
334
347
- name : Check MSRV of s2n-tls-sys
335
- run : grep "rust-version = \"$(cat ${{env.ROOT_PATH}}/rust-toolchain) \"" ${{env.ROOT_PATH}}/s2n-tls-sys/templates/Cargo.template
348
+ run : grep "rust-version = \"${{steps.read_toml.outputs.value}} \"" ${{env.ROOT_PATH}}/s2n-tls-sys/templates/Cargo.template
336
349
337
350
- name : Check MSRV of s2n-tokio
338
- run : grep "rust-version = \"$(cat ${{env.ROOT_PATH}}/rust-toolchain) \"" ${{env.ROOT_PATH}}/s2n-tls-tokio/Cargo.toml
351
+ run : grep "rust-version = \"${{steps.read_toml.outputs.value}} \"" ${{env.ROOT_PATH}}/s2n-tls-tokio/Cargo.toml
339
352
340
353
pcaps :
341
354
runs-on : ubuntu-24.04
0 commit comments