Skip to content

Commit

Permalink
Rework CI to separate jobs
Browse files Browse the repository at this point in the history
Signed-off-by: Lee Smet <[email protected]>
  • Loading branch information
LeeSmet committed Feb 28, 2024
1 parent e78bdfa commit fcb3acc
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ env:
CARGO_TERM_COLOR: always

jobs:
check_binary:
check_fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- uses: clechasseur/rs-fmt-check@v2
with:
args: --all -- --check
clippy:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -19,15 +29,19 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: clechasseur/rs-fmt-check@v2
with:
args: --all -- --check
components: clippy
- uses: giraffate/clippy-action@v1
with:
clippy-flags: -- -D warnings
github_token: ${{ secrets.GITHUB_TOKEN }}
check_binary:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

0 comments on commit fcb3acc

Please sign in to comment.