Skip to content

Commit e3a84d9

Browse files
committed
Fix Windows CI builds by downgrading rsmpeg for FFmpeg 6.x compatibility
Add PowerShell steps to Windows CI workflows to temporarily downgrade rsmpeg from 0.18.0 (FFmpeg 8.0) to 0.14.2 (FFmpeg 6.1) since vcpkg provides an older FFmpeg version. This matches the Linux CI fix and ensures all CI platforms can build successfully while maintaining FFmpeg 8.0 support for local development.
1 parent 7334463 commit e3a84d9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build_windows.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ jobs:
5858
override: true
5959
- name: Install Win 10 SDK
6060
uses: ilammy/msvc-dev-cmd@v1
61+
- name: Downgrade rsmpeg for FFmpeg 6.x compatibility
62+
shell: powershell
63+
run: |
64+
(Get-Content src\rust\Cargo.toml) -replace 'rsmpeg = \{ version = "0.18.0\+ffmpeg.8.0"', 'rsmpeg = { version = "0.14.2+ffmpeg.6.1"' | Set-Content src\rust\Cargo.toml
6165
- name: build Release-Full
6266
env:
6367
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\lib"
@@ -109,6 +113,10 @@ jobs:
109113
override: true
110114
- name: Install Win 10 SDK
111115
uses: ilammy/msvc-dev-cmd@v1
116+
- name: Downgrade rsmpeg for FFmpeg 6.x compatibility
117+
shell: powershell
118+
run: |
119+
(Get-Content src\rust\Cargo.toml) -replace 'rsmpeg = \{ version = "0.18.0\+ffmpeg.8.0"', 'rsmpeg = { version = "0.14.2+ffmpeg.6.1"' | Set-Content src\rust\Cargo.toml
112120
- name: build Debug-Full
113121
env:
114122
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\lib"

0 commit comments

Comments
 (0)