ci: Only check formatting and documentation on Linux

To speed up the rest of the runners - they were doing
duplicate work anyway.
This commit is contained in:
TÖRÖK Attila 2023-12-19 00:04:43 +01:00
parent 268a1f5d18
commit 8215ff6fbf
1 changed files with 2 additions and 0 deletions

View File

@ -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