2021-05-14 17:35:08 +03:00
|
|
|
name: Rust
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-15 19:32:13 +03:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2021-05-14 17:35:08 +03:00
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: nightly-2021-04-01
|
|
|
|
override: false
|
|
|
|
- name: Packages
|
|
|
|
run: sudo apt-get install build-essential yasm libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libavfilter-dev libavdevice-dev libswresample-dev libfftw3-dev ffmpeg
|
|
|
|
- name: Build
|
|
|
|
run: cargo build --verbose
|
|
|
|
- name: Run tests
|
|
|
|
run: cargo test --verbose
|
|
|
|
- name: Run example tests
|
|
|
|
run: cargo test --verbose --examples
|
|
|
|
- name: Build benches
|
|
|
|
run: cargo +nightly-2021-04-01 bench --verbose --features=bench --no-run
|
|
|
|
- name: Build examples
|
|
|
|
run: cargo build --examples --verbose
|