mirror of
https://github.com/encounter/rust-ffmpeg-zmwangx.git
synced 2026-07-10 21:18:40 -07:00
Merge pull request #141 from Polochon-street/use-ffmpeg6-official-image
Update CI to use jrottenberg/ffmpeg6.0 image
This commit is contained in:
@@ -11,7 +11,7 @@ jobs:
|
||||
container: jrottenberg/ffmpeg:${{ matrix.ffmpeg_version }}-ubuntu
|
||||
strategy:
|
||||
matrix:
|
||||
ffmpeg_version: ["3.4", "4.0", "4.1", "4.2", "4.3", "4.4", "5.0", "5.1"]
|
||||
ffmpeg_version: ["3.4", "4.0", "4.1", "4.2", "4.3", "4.4", "5.0", "5.1", "6.0"]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -38,41 +38,6 @@ 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