From 8215ff6fbf438482010e41c4e55e22ba413de0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Tue, 19 Dec 2023 00:04:43 +0100 Subject: [PATCH] ci: Only check formatting and documentation on Linux To speed up the rest of the runners - they were doing duplicate work anyway. --- .github/workflows/test_rust.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test_rust.yml b/.github/workflows/test_rust.yml index a671aae94..0baa26e5a 100644 --- a/.github/workflows/test_rust.yml +++ b/.github/workflows/test_rust.yml @@ -68,6 +68,7 @@ jobs: save-if: ${{ github.ref == 'refs/heads/master' }} - name: Check formatting + if: runner.os == 'Linux' run: cargo fmt --all -- --check - name: Check clippy @@ -81,6 +82,7 @@ jobs: uses: EmbarkStudios/cargo-deny-action@v1 - name: Check documentation + if: runner.os == 'Linux' run: cargo doc --no-deps --all-features env: RUSTDOCFLAGS: -D warnings