bliss-rs/.github/workflows/rust.yml

37 lines
962 B
YAML
Raw Normal View History

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
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 update && sudo apt-get install build-essential yasm libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libavfilter-dev libavdevice-dev libswresample-dev libfftw3-dev ffmpeg
2021-05-14 17:35:08 +03:00
- 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 --features=serde