ffplayout/.github/workflows/rust.yml

30 lines
808 B
YAML
Raw Normal View History

2022-05-07 16:13:13 -04:00
name: rust
on: [push, pull_request]
2022-03-31 15:44:48 -04:00
jobs:
build:
2022-05-18 08:32:12 -04:00
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
runs-on: ${{ matrix.os }}
2022-03-31 15:44:48 -04:00
steps:
2022-06-01 15:00:57 -04:00
- uses: actions/checkout@v3
2022-10-14 06:28:33 -04:00
- name: On all Systems
run: |
rustup update stable
rustup component add rustfmt
rustup component add clippy
2022-10-14 06:23:58 -04:00
2022-10-14 06:39:51 -04:00
- name: Use ffmpeg on Linux
2022-10-14 06:23:58 -04:00
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: FedericoCarboni/setup-ffmpeg@v1
2022-10-14 06:36:04 -04:00
2022-10-14 06:39:51 -04:00
- name: Tests and Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
2022-10-14 06:31:48 -04:00
run: |
2022-10-14 06:39:51 -04:00
cargo test --all-features
cargo clippy --all-features --all-targets -- --deny warnings
cargo fmt --all -- --check
- name: Run build on all Systems
2022-10-14 06:31:48 -04:00
cargo build --all-features