Skip to content

Commit

Permalink
Move clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed May 16, 2024
1 parent a29adde commit 43d8d8b
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,7 @@ jobs:
- name: Check formatting
run: cargo fmt -- --check

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:
components: clippy

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: Clippy
run: cargo clippy --all-targets -- -Dclippy::all -D warnings

clippy:
needs: build
runs-on: oracles-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-clippy
Expand All @@ -96,21 +75,10 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- name: Install protoc
run: sudo apt-get install -y protobuf-compiler

- name: Cache
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Clippy
run: cargo clippy --all-targets -- -Dclippy::all -D warnings

Expand Down

0 comments on commit 43d8d8b

Please sign in to comment.