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-05-07 16:13:13 -04:00
|
|
|
- run: rustup update stable
|
2022-06-01 15:00:57 -04:00
|
|
|
- run: rustup component add rustfmt
|
|
|
|
- run: rustup component add clippy
|
2022-10-14 06:23:58 -04:00
|
|
|
|
|
|
|
- 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
|