diff --git a/.github/workflows/check-rust.yml b/.github/workflows/check-rust.yml index 0f33d75bb..fdbcfb46f 100644 --- a/.github/workflows/check-rust.yml +++ b/.github/workflows/check-rust.yml @@ -216,10 +216,29 @@ jobs: - name: Check-out repositoroy under $GITHUB_WORKSPACE uses: actions/checkout@v4 - - name: Audit check - uses: rustsec/audit-check@v1.4.1 + - name: Install dependencies + run: | + sudo apt-get update && + sudo apt-get install -y clang curl libssl-dev llvm libudev-dev protobuf-compiler + + - name: Install Rust ${{ matrix.rust-branch }} + uses: actions-rs/toolchain@v1.0.6 + with: + toolchain: ${{ matrix.rust-branch }} + components: rustfmt, clippy + profile: minimal + + - name: Utilize Shared Rust Cache + uses: Swatinem/rust-cache@v2.2.1 with: - token: ${{ secrets.GITHUB_TOKEN }} + key: ${{ matrix.os }}-${{ env.RUST_BIN_DIR }} + + - name: Install cargo-audit + run: cargo install cargo-audit + + - name: cargo audit + run: cargo audit + # runs cargo test --workspace cargo-test: name: cargo test