File tree Expand file tree Collapse file tree 2 files changed +42
-31
lines changed Expand file tree Collapse file tree 2 files changed +42
-31
lines changed Original file line number Diff line number Diff line change
1
+ name : cargo audit
2
+ on :
3
+ pull_request :
4
+ types :
5
+ - labeled
6
+ - unlabeled
7
+ - synchronize
8
+ concurrency :
9
+ group : cargo-audit-${{ github.ref }}
10
+ cancel-in-progress : true
11
+
12
+ jobs :
13
+ cargo-audit :
14
+ name : cargo audit
15
+ runs-on : SubtensorCI
16
+ if : ${{ !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
17
+ steps :
18
+ - name : Check-out repositoroy under $GITHUB_WORKSPACE
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Install dependencies
22
+ run : |
23
+ sudo apt-get update &&
24
+ sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
25
+
26
+ - name : Install Rust Stable
27
+ uses :
actions-rs/[email protected]
28
+ with :
29
+ toolchain : stable
30
+ components : rustfmt, clippy
31
+ profile : minimal
32
+
33
+ - name : Utilize Shared Rust Cache
34
+
35
+ with :
36
+ key : ubuntu-latest-${{ env.RUST_BIN_DIR }}
37
+
38
+ - name : Install cargo-audit
39
+ run : cargo install cargo-audit
40
+
41
+ - name : cargo audit
42
+ run : cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this
Original file line number Diff line number Diff line change @@ -208,37 +208,6 @@ jobs:
208
208
209
209
- name : cargo clippy --workspace --all-targets --all-features -- -D warnings
210
210
run : cargo clippy --workspace --all-targets --all-features -- -D warnings
211
- # runs cargo audit
212
- cargo-audit :
213
- name : cargo audit
214
- runs-on : SubtensorCI
215
- if : ${{ github.event_name != 'push' && !contains(github.event.pull_request.labels.*.name, 'skip-cargo-audit') }}
216
- steps :
217
- - name : Check-out repositoroy under $GITHUB_WORKSPACE
218
- uses : actions/checkout@v4
219
-
220
- - name : Install dependencies
221
- run : |
222
- sudo apt-get update &&
223
- sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
224
-
225
- - name : Install Rust Stable
226
- uses :
actions-rs/[email protected]
227
- with :
228
- toolchain : stable
229
- components : rustfmt, clippy
230
- profile : minimal
231
-
232
- - name : Utilize Shared Rust Cache
233
-
234
- with :
235
- key : ubuntu-latest-${{ env.RUST_BIN_DIR }}
236
-
237
- - name : Install cargo-audit
238
- run : cargo install cargo-audit
239
-
240
- - name : cargo audit
241
- run : cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this
242
211
243
212
# runs cargo test --workspace
244
213
cargo-test :
You can’t perform that action at this time.
0 commit comments