Skip to content

Commit

Permalink
CI: Separate build and clippy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
tux3 committed Jul 7, 2022
1 parent bac1b0e commit 2c0c6dd
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,21 @@ env:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build (bin)
run: cargo build --verbose
- name: Build (lib)
run: cargo build --lib --no-default-features --verbose
run: cargo build --lib --no-default-features
- name: Build (bin)
run: cargo build --all
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clippy
run: cargo clippy --all --all-targets -- -D warnings
- name: Clippy (no features)
run: cargo clippy --all --all-targets --no-default-features -- -D warnings
- name: Clippy (all features)
run: cargo clippy --all --all-targets --all-features -- -D warnings

0 comments on commit 2c0c6dd

Please sign in to comment.