From 48f83e75f77efb849d4d99eb4f46b5acf5e1481d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20P=2E=20Bezerra?= Date: Sun, 17 Nov 2024 18:59:34 -0300 Subject: [PATCH] CI: tweak: separate clippy and rustfmt jobs --- .github/workflows/build-and-test.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index cf75e4e..54eab73 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -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: