From c0f074344dc246e959785881078ed62ad74f35f2 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Fri, 14 Oct 2022 12:36:04 +0200 Subject: [PATCH] conditional run --- .github/workflows/rust.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 06df6856..c2c4b25c 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -17,11 +17,12 @@ jobs: - name: Run on Linux if: ${{ matrix.os == 'ubuntu-latest' }} uses: FedericoCarboni/setup-ffmpeg@v1 - id: setup-ffmpeg - run: | - cargo fmt --all -- --check - cargo clippy --all-features --all-targets -- --deny warnings - cargo build --all-features - - name: Run on macOS/Windows - run: cargo build --all-features + - name: Run Cargo + run: | + if [ "$RUNNER_OS" == "Linux" ]; then + cargo test --all-features + cargo clippy --all-features --all-targets -- --deny warnings + cargo fmt --all -- --check + fi + cargo build --all-features