mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
Add ffmpeg6 to the CI
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user