@@ -34,11 +34,15 @@ jobs:
3434 os : windows-latest
3535 rust : stable-x86_64-pc-windows-gnu
3636 steps :
37- - uses : actions/checkout@v4
38- - uses : dtolnay/rust-toolchain@master
37+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
38+ with :
39+ persist-credentials : false
40+ - uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
3941 with :
4042 toolchain : ${{ matrix.rust }}
41- - uses : taiki-e/install-action@cargo-hack
43+ - uses : taiki-e/install-action@0abfcd587b70a713fdaa7fb502c885e2112acb15 # v2.75.7
44+ with :
45+ tool : cargo-hack
4246 - run : cargo hack test --feature-powerset --exclude-features max_level_off,max_level_error,max_level_warn,max_level_info,max_level_debug,max_level_trace,release_max_level_off,release_max_level_error,release_max_level_warn,release_max_level_info,release_max_level_debug,release_max_level_trace
4347 - run : cargo run --verbose --manifest-path test_max_level_features/Cargo.toml
4448 - run : cargo run --verbose --manifest-path test_max_level_features/Cargo.toml --release
4751 name : Check Format and Clippy
4852 runs-on : ubuntu-latest
4953 steps :
50- - uses : actions/checkout@v4
51- - uses : dtolnay/rust-toolchain@stable
54+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
5255 with :
56+ persist-credentials : false
57+ - uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
58+ with :
59+ toolchain : stable
5360 components : clippy
5461 - run : cargo fmt -- --check
5562 - run : cargo fmt --manifest-path test_max_level_features/Cargo.toml -- --check
6067 name : Check Documentation
6168 runs-on : ubuntu-latest
6269 steps :
63- - uses : actions/checkout@v4
64- - uses : dtolnay/rust-toolchain@stable
70+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
71+ with :
72+ persist-credentials : false
73+ - uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
74+ with :
75+ toolchain : stable
6576 - name : Run rustdoc
6677 env :
6778 RUSTDOCFLAGS : " -D warnings"
7182 name : Feature check
7283 runs-on : ubuntu-latest
7384 steps :
74- - uses : actions/checkout@v4
75- - uses : dtolnay/rust-toolchain@nightly
85+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
86+ with :
87+ persist-credentials : false
88+ - uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
89+ with :
90+ toolchain : nightly
7691 - run : cargo build --verbose -Z avoid-dev-deps --features kv
7792 - run : cargo build --verbose -Z avoid-dev-deps --features "kv std"
7893 - run : cargo build --verbose -Z avoid-dev-deps --features "kv kv_sval"
8499 name : Minimal versions
85100 runs-on : ubuntu-latest
86101 steps :
87- - uses : actions/checkout@v4
88- - uses : dtolnay/rust-toolchain@nightly
102+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
103+ with :
104+ persist-credentials : false
105+ - uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
106+ with :
107+ toolchain : nightly
89108 - run : cargo build --verbose -Z minimal-versions --features kv
90109 - run : cargo build --verbose -Z minimal-versions --features "kv std"
91110 - run : cargo build --verbose -Z minimal-versions --features "kv kv_sval"
@@ -97,11 +116,16 @@ jobs:
97116 name : MSRV
98117 runs-on : ubuntu-latest
99118 steps :
100- - uses : actions/checkout@v4
101- - uses : dtolnay/rust-toolchain@1.68.0
119+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
120+ with :
121+ persist-credentials : false
122+ - uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
102123 with :
103124 components : clippy
104- - uses : taiki-e/install-action@cargo-hack
125+ toolchain : " 1.71"
126+ - uses : taiki-e/install-action@0abfcd587b70a713fdaa7fb502c885e2112acb15 # v2.75.7
127+ with :
128+ tool : cargo-hack
105129 - run : cargo hack test --feature-powerset --exclude-features max_level_off,max_level_error,max_level_warn,max_level_info,max_level_debug,max_level_trace,release_max_level_off,release_max_level_error,release_max_level_warn,release_max_level_info,release_max_level_debug,release_max_level_trace
106130 - run : cargo run --verbose --manifest-path test_max_level_features/Cargo.toml
107131 - run : cargo run --verbose --manifest-path test_max_level_features/Cargo.toml --release
@@ -110,8 +134,12 @@ jobs:
110134 name : Embedded
111135 runs-on : ubuntu-latest
112136 steps :
113- - uses : actions/checkout@v4
114- - uses : dtolnay/rust-toolchain@stable
137+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98 # v6.0.2
138+ with :
139+ persist-credentials : false
140+ - uses : dtolnay/rust-toolchain@e97e2d8cc328f1b50210efc529dca0028893a2d9 # v1
141+ with :
142+ toolchain : stable
115143 - run : rustup target add thumbv6m-none-eabi riscv32imc-unknown-none-elf
116144 - run : cargo build --verbose --target=thumbv6m-none-eabi
117145 - run : cargo build --verbose --target=riscv32imc-unknown-none-elf
0 commit comments