Skip to content

Commit bcb2caa

Browse files
Add ffmpeg6 to the CI
1 parent f09c320 commit bcb2caa

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,41 @@ jobs:
3838
run: |
3939
cargo fmt -- --check
4040
41+
# Remove when ffmpeg 6.0 is available here https://github.com/jrottenberg/ffmpeg/
42+
build-test-lint-linux-latest:
43+
name: Linux - Latest ffmpeg - build, test and lint
44+
runs-on: ubuntu-latest
45+
strategy:
46+
fail-fast: false
47+
steps:
48+
- uses: actions/checkout@v2
49+
- name: Install dependencies
50+
run: |
51+
sudo apt update
52+
sudo apt install -y software-properties-common
53+
sudo add-apt-repository -y ppa:savoury1/ffmpeg6
54+
sudo add-apt-repository -y ppa:savoury1/ffmpeg4
55+
sudo apt update
56+
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
57+
- name: Set up Rust
58+
uses: actions-rs/toolchain@v1
59+
with:
60+
toolchain: stable
61+
override: true
62+
components: rustfmt, clippy
63+
- name: Build
64+
run: |
65+
cargo build --examples
66+
- name: Test
67+
run: |
68+
cargo test --examples
69+
- name: Lint
70+
run: |
71+
cargo clippy --examples -- -D warnings
72+
- name: Check format
73+
run: |
74+
cargo fmt -- --check
75+
4176
build-test-lint-macos:
4277
name: macOS - FFmpeg latest - build, test and lint
4378
runs-on: macos-latest

0 commit comments

Comments
 (0)