ffplayout/.github/workflows/rust.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 20: mapping key "run" already defined at line 19 line 21: mapping key "run" already defined at line 19 line 21: mapping key "run" already defined at line 20
2022-10-14 12:23:58 +02:00

25 lines
706 B
YAML

name: rust
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: rustup update stable
- run: rustup component add rustfmt
- run: rustup component add clippy
- name: Run on Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: FedericoCarboni/setup-ffmpeg@v1
id: setup-ffmpeg
run: cargo fmt --all -- --check
run: cargo clippy --all-features --all-targets -- --deny warnings
run: cargo build --all-features
- name: Run on macOS/Windows
run: cargo build --all-features