Skip to content

Commit

Permalink
ci: Further split lint steps
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ishere committed Feb 1, 2024
1 parent 29e224c commit 71ab96d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/cargo-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
lint:
clippy:
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -40,5 +40,19 @@ jobs:
- name: clippy
run: cargo clippy --no-deps ${{ matrix.target }} --verbose -- -Dwarnings

- name: fmt
run: cargo fmt --all --check --verbose
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
with:
path: target/
key: cargo-lint-${{ hashFiles('Cargo.lock') }}
restore-keys: |
cargo-lint-${{ hashFiles('Cargo.lock') }}
cargo-lint-
cargo-
- name: fmt
run: cargo fmt --all --check --verbose

0 comments on commit 71ab96d

Please sign in to comment.