CI: tweak: separate clippy and rustfmt jobs

This commit is contained in:
João Marcos P. Bezerra 2024-11-17 18:59:34 -03:00 committed by João Marcos
parent 256fedbcc2
commit 48f83e75f7

View File

@ -11,18 +11,28 @@ on:
- "*.md"
jobs:
clippy-rustfmt:
name: clippy-rustfmt
clippy-lints-check:
name: clippy-lints-check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Cargo: clippy, fmt"
- name: "Cargo: clippy"
run: |
rustup toolchain install stable --profile minimal -c clippy
rustup toolchain install nightly --profile minimal -c rustfmt
cargo +stable clippy -- -D warnings
rustfmt-check:
name: rustfmt-check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Cargo: fmt"
run: |
rustup toolchain install nightly --profile minimal -c rustfmt
cargo +nightly fmt -- --check
github-release: