From 7d9b738374e68795039622fb49288c98c50633a9 Mon Sep 17 00:00:00 2001 From: Macpie Date: Thu, 16 May 2024 10:00:10 -0700 Subject: [PATCH] Experiment --- .github/workflows/CI.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2e3680a6c..30dc48adf 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -46,7 +46,6 @@ jobs: run: cargo build --all --tests fmt: - needs: build runs-on: oracles-20.04 concurrency: group: ${{ github.workflow }}-${{ github.ref }}-fmt @@ -60,22 +59,26 @@ jobs: with: components: rustfmt - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler + - name: Check formatting + run: cargo fmt -- --check - - name: Cache - uses: actions/cache@v4 + clippy2: + runs-on: oracles-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-clippy2 + cancel-in-progress: true + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Rust install + uses: dtolnay/rust-toolchain@stable with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + components: clippy + + - name: Clippy + run: cargo clippy --all-targets -- -Dclippy::all -D warnings - - name: Check formatting - run: cargo fmt -- --check clippy: needs: build runs-on: oracles-20.04