Skip to content

Commit 7334463

Browse files
committed
Fix Linux CI builds by downgrading rsmpeg for FFmpeg 6.x compatibility
Add steps to Linux CI workflows to temporarily downgrade rsmpeg from 0.18.0 (FFmpeg 8.0) to 0.14.2 (FFmpeg 6.1) since Ubuntu runners have older FFmpeg versions installed. This allows the CI to build successfully while keeping FFmpeg 8.0 support for users who have it installed locally.
1 parent 107e3b7 commit 7334463

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build_linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- name: Install dependencies
2929
run: sudo apt update && sudo apt-get install libgpac-dev libtesseract-dev libavcodec-dev libavdevice-dev libx11-dev libxcb1-dev libxcb-shm0-dev
3030
- uses: actions/checkout@v4
31+
- name: Downgrade rsmpeg for FFmpeg 6.x compatibility
32+
run: |
33+
sed -i 's/rsmpeg = { version = "0.18.0+ffmpeg.8.0"/rsmpeg = { version = "0.14.2+ffmpeg.6.1"/' src/rust/Cargo.toml
3134
- name: build
3235
run: ./build -hardsubx
3336
working-directory: ./linux
@@ -79,6 +82,9 @@ jobs:
7982
- uses: actions/checkout@v4
8083
- name: Install dependencies
8184
run: sudo apt update && sudo apt install libgpac-dev libtesseract-dev libavformat-dev libavdevice-dev libswscale-dev yasm
85+
- name: Downgrade rsmpeg for FFmpeg 6.x compatibility
86+
run: |
87+
sed -i 's/rsmpeg = { version = "0.18.0+ffmpeg.8.0"/rsmpeg = { version = "0.14.2+ffmpeg.6.1"/' src/rust/Cargo.toml
8288
- name: cmake
8389
run: |
8490
mkdir build && cd build

0 commit comments

Comments
 (0)