run not everything on every os

This commit is contained in:
jb-alvarado 2022-10-14 12:23:58 +02:00
parent 13aac537bb
commit bd4c247f9b

View File

@ -8,15 +8,17 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: FedericoCarboni/setup-ffmpeg@v1
id: setup-ffmpeg
- run: rustup update stable - run: rustup update stable
- run: rustup component add rustfmt - run: rustup component add rustfmt
- run: rustup component add clippy - run: rustup component add clippy
- run: |
if [ "$RUNNER_OS" == "Linux" ]; then - name: Run on Linux
cargo test --all-features if: ${{ matrix.os == 'ubuntu-latest' }}
fi uses: FedericoCarboni/setup-ffmpeg@v1
- run: cargo fmt --all -- --check id: setup-ffmpeg
- run: cargo clippy --all-features --all-targets -- --deny warnings run: cargo fmt --all -- --check
- run: cargo build --all-features run: cargo clippy --all-features --all-targets -- --deny warnings
run: cargo build --all-features
- name: Run on macOS/Windows
run: cargo build --all-features