40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
name: build
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
jobs:
|
|
build-test-lint:
|
|
name: FFmpeg ${{ matrix.ffmpeg_version }} - build, test and lint
|
|
runs-on: ubuntu-latest
|
|
container: jrottenberg/ffmpeg:${{ matrix.ffmpeg_version }}-ubuntu
|
|
strategy:
|
|
matrix:
|
|
ffmpeg_version: ["3.4", "4.0", "4.1", "4.2", "4.3"]
|
|
fail-fast: false
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Install dependencies
|
|
run: |
|
|
apt update
|
|
apt install -y --no-install-recommends clang curl pkg-config
|
|
- name: Set up Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
components: rustfmt, clippy
|
|
- name: Build
|
|
run: |
|
|
cargo build --examples
|
|
- name: Test
|
|
run: |
|
|
cargo test --examples
|
|
- name: Lint
|
|
run: |
|
|
cargo clippy --examples -- -D warnings
|
|
- name: Check format
|
|
run: |
|
|
cargo fmt -- --check
|