Add ffmpeg6 to the CI

This commit is contained in:
Polochon-street
2023-03-12 14:10:03 +01:00
parent f09c320615
commit bcb2caa516
+35
View File
@@ -38,6 +38,41 @@ jobs:
run: |
cargo fmt -- --check
# Remove when ffmpeg 6.0 is available here https://github.com/jrottenberg/ffmpeg/
build-test-lint-linux-latest:
name: Linux - Latest ffmpeg - build, test and lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y software-properties-common
sudo add-apt-repository -y ppa:savoury1/ffmpeg6
sudo add-apt-repository -y ppa:savoury1/ffmpeg4
sudo apt update
sudo apt install -y --no-install-recommends clang curl pkg-config ffmpeg libavutil-dev libavcodec-dev libavformat-dev libavfilter-dev libavfilter-dev libavdevice-dev libswresample-dev
- 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
build-test-lint-macos:
name: macOS - FFmpeg latest - build, test and lint
runs-on: macos-latest