File tree Expand file tree Collapse file tree 3 files changed +234
-186
lines changed
Expand file tree Collapse file tree 3 files changed +234
-186
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,47 @@ jobs:
208208
209209 - name : cargo clippy --workspace --all-targets --all-features -- -D warnings
210210 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+ strategy :
216+ matrix :
217+ rust-branch :
218+ - stable
219+ rust-target :
220+ - x86_64-unknown-linux-gnu
221+ # - x86_64-apple-darwin
222+ os :
223+ - ubuntu-latest
224+ # - macos-latest
225+ steps :
226+ - name : Check-out repositoroy under $GITHUB_WORKSPACE
227+ uses : actions/checkout@v4
228+
229+ - name : Install dependencies
230+ run : |
231+ sudo apt-get update &&
232+ sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler
233+
234+ - name : Install Rust ${{ matrix.rust-branch }}
235+ uses :
actions-rs/[email protected] 236+ with :
237+ toolchain : ${{ matrix.rust-branch }}
238+ components : rustfmt, clippy
239+ profile : minimal
240+
241+ - name : Utilize Shared Rust Cache
242+ 243+ with :
244+ key : ${{ matrix.os }}-${{ env.RUST_BIN_DIR }}
245+
246+ - name : Install cargo-audit
247+ run : cargo install cargo-audit
248+
249+ - name : cargo audit
250+ run : cargo audit --ignore RUSTSEC-2024-0336 # rustls issue; wait for upstream to resolve this
251+
211252 # runs cargo test --workspace
212253 cargo-test :
213254 name : cargo test
You can’t perform that action at this time.
0 commit comments