build.yml: drop ffmpegxy feature flags and build/test/lint examples

This commit is contained in:
Zhiming Wang 2020-08-10 22:22:30 +08:00
parent 0a03e745b4
commit 18058e9a8f
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -11,20 +11,8 @@ jobs:
container: jrottenberg/ffmpeg:${{ matrix.ffmpeg_version }}-ubuntu container: jrottenberg/ffmpeg:${{ matrix.ffmpeg_version }}-ubuntu
strategy: strategy:
matrix: matrix:
include: ffmpeg_version: ["3.4", "4.0", "4.1", "4.2", "4.3"]
- ffmpeg_version: '3.4'
ffmpeg_version_feature:
- ffmpeg_version: '4.0'
ffmpeg_version_feature: ffmpeg4
- ffmpeg_version: '4.1'
ffmpeg_version_feature: ffmpeg41
- ffmpeg_version: '4.2'
ffmpeg_version_feature: ffmpeg42
- ffmpeg_version: '4.3'
ffmpeg_version_feature: ffmpeg43
fail-fast: false fail-fast: false
env:
FEATURES: ${{ matrix.ffmpeg_version_feature }},codec,device,filter,format,postprocessing,software-resampling,software-scaling
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Install dependencies - name: Install dependencies
@ -39,13 +27,13 @@ jobs:
components: rustfmt, clippy components: rustfmt, clippy
- name: Build - name: Build
run: | run: |
cargo build --no-default-features --features $FEATURES cargo build --examples
- name: Test - name: Test
run: | run: |
cargo test --no-default-features --features $FEATURES cargo test --examples
- name: Lint - name: Lint
run: | run: |
cargo clippy --no-default-features --features $FEATURES -- -D warnings cargo clippy --examples -- -D warnings
- name: Check format - name: Check format
run: | run: |
cargo fmt -- --check cargo fmt -- --check