From 1fbb6d2af6eb5d21d5f27cf77c6d9afd0ef4efa0 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Sun, 8 Feb 2026 15:27:37 +0100 Subject: [PATCH] separate run jobs --- .github/workflows/rust.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 17ff9e1..1a52558 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -73,14 +73,18 @@ jobs: .venv\Scripts\activate.ps1 py -m pip install gvsbuild gvsbuild build --msys-dir=C:\msys64 gtk4 libadwaita librsvg - - name: Run cargo ${{ matrix.job }} - run: | - if [ "${{ matrix.job }}" = "build" ]; then - cargo build - elif [ "${{ matrix.job }}" = "check" ]; then - cargo check --workspace --all-targets --all-features - elif [ "${{ matrix.job }}" = "clippy" ]; then - cargo clippy --all-features --all-targets -- --deny warnings - elif [ "${{ matrix.job }}" = "test" ]; then - cargo test --workspace --all-targets --all-features - fi + - name: cargo build + if: matrix.job == 'build' + run: cargo check --workspace --all-targets --all-features + + - name: cargo check + if: matrix.job == 'check' + run: cargo check --workspace --all-targets --all-features + + - name: cargo test + if: matrix.job == 'test' + run: cargo test --workspace --all-features + + - name: cargo clippy + if: matrix.job == 'clippy' + run: cargo clippy --workspace --all-targets --all-features -- -D warnings