2424 steps :
2525 - name : Checkout
2626 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
27+ with :
28+ persist-credentials : false
2729
2830 - name : Set Rust Toolchain
2931 id : toolchain
@@ -46,15 +48,19 @@ jobs:
4648 components : clippy, rustfmt
4749
4850 - name : Install rust nightly
51+ env :
52+ RUST_NIGHTLY_TOOLCHAIN : ${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}
4953 run : |
50- rustup toolchain install "${{ steps.nightly-toolchain.outputs. RUST_NIGHTLY_TOOLCHAIN } }"
51- rustup component add rustfmt --toolchain "${{ steps.nightly-toolchain.outputs. RUST_NIGHTLY_TOOLCHAIN } }"-x86_64-unknown-linux-gnu
54+ rustup toolchain install "${RUST_NIGHTLY_TOOLCHAIN}"
55+ rustup component add rustfmt --toolchain "${RUST_NIGHTLY_TOOLCHAIN}"-x86_64-unknown-linux-gnu
5256
5357 - name : Cache cargo registry
5458 uses : Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2.7.7
5559
5660 - name : Cargo fmt
57- run : cargo +"${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}" fmt --check
61+ env :
62+ RUST_NIGHTLY_TOOLCHAIN : ${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}
63+ run : cargo +"${RUST_NIGHTLY_TOOLCHAIN}" fmt --check
5864
5965 - name : Install clippy-sarif and sarif-fmt
6066 run : cargo install clippy-sarif sarif-fmt --locked --git https://github.com/psastras/sarif-rs.git --rev 11c33a53f6ffeaed736856b86fb6b7b09fabdfd8
9096 run : cargo install cargo-udeps --version 0.1.57 --locked
9197
9298 - name : Cargo udeps
93- run : cargo +"${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}" udeps --workspace --all-features
99+ env :
100+ RUST_NIGHTLY_TOOLCHAIN : ${{ steps.nightly-toolchain.outputs.RUST_NIGHTLY_TOOLCHAIN }}
101+ run : cargo +"${RUST_NIGHTLY_TOOLCHAIN}" udeps --workspace --all-features
94102
95103 - name : Install cargo-dylint
96104 run : cargo install cargo-dylint dylint-link --version 4.1.0 --locked
0 commit comments