Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed May 16, 2024
1 parent 33c540e commit 7d9b738
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7d9b738

Please sign in to comment.