From 99878592f27097a1e0de5355ddebc38f95080f75 Mon Sep 17 00:00:00 2001 From: ilevyor Date: Wed, 27 Mar 2024 16:25:30 -0400 Subject: [PATCH] clippy workflow --- .github/workflows/code-quality.yaml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/code-quality.yaml b/.github/workflows/code-quality.yaml index b50629a0c..1d7e112d3 100644 --- a/.github/workflows/code-quality.yaml +++ b/.github/workflows/code-quality.yaml @@ -4,17 +4,16 @@ concurrency: group: ${{ github.workflow }}-${{ (github.ref == 'refs/heads/main' && github.sha) || github.ref }} cancel-in-progress: true jobs: - clippy_check: - runs-on: "nscloud-ubuntu-22.04-amd64-4x16" + clippy: + name: clippy + runs-on: ubuntu-latest + timeout-minutes: 30 steps: - - name: clone code - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@clippy + - uses: Swatinem/rust-cache@v2 with: - submodules: true - - name: Install Protoc - run: sudo apt-get install -y protobuf-compiler - - run: rustup component add clippy - - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --workspace --features test_ci --exclude marzano-wasm-bindings -- -D warnings + cache-on-failure: true + - run: cargo clippy --workspace --lib --examples --tests --benches --all-features --locked + env: + RUSTFLAGS: -D warnings