-
-
Notifications
You must be signed in to change notification settings - Fork 17
Refactor FFmpeg setup in CI to use static executable from Docker #371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1e731ea
Refactor FFmpeg setup in CI to use static executable from Docker
ec384ad
Add macOS support for FFmpeg setup in CI by installing Docker
e4bbd1f
Remove macOS from CI matrix and adjust FFmpeg setup to use Linux plat…
4930e4f
Enable experimental features for FFmpeg setup in CI Docker build
51b1fe6
Refactor CI setup to use a dedicated FFmpeg Dockerfile and update dep…
52874fb
Update FFmpeg setup in CI to build from the workflow directory
a78dd03
Update FFmpeg setup in CI to use dedicated Dockerfile
ff9923b
Fix FFmpeg Docker build command in CI workflow
1e9c6a0
Fix FFmpeg Docker build command in unit test workflow
7f539a2
Fix FFmpeg Docker build command in unit test workflow
eaaa037
Add --experimental flag to FFmpeg Docker run command in unit test wor…
dbeefa6
Update unit test workflow to use Docker create and cp for FFmpeg setup
b42b218
Fix paths in Docker cp commands for FFmpeg setup in unit test workflow
0815f40
Add --platform flag to FFmpeg Docker create command in unit test work…
527a2c2
Fix FFmpeg Docker create command to use 'linux' platform
5c0cb2e
Update unit test workflow to use 'windows-2025' and remove --platform…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Linux-centric command breaks Windows runners
${{ matrix.os }}includeswindows-latest, but the step is executed with the default PowerShell shell on Windows.$PWDand the here-string used to pipe a Dockerfile intodocker buildare bash-isms and will raise “command not found” in PowerShell, causing the whole Windows leg to fail.Minimal fix:
Alternatively gate the step to
if: runner.os == 'Linux'.🏁 Script executed:
Length of output: 2253
Ensure FFmpeg setup only runs on Linux and uses a POSIX shell
The current FFmpeg step uses bash-isms (
$PWD, here-string,$(…)) and Docker (not available on macOS) under the default PowerShell on Windows, so it will fail on both Windows and macOS runners.• File: .github/workflows/unit-test.yml
• Lines: 26–30
Recommended changes:
if: runner.os == 'Linux'to skip this step on Windows & macOSshell: bashto force a POSIX shell when it does runprintfinstead ofechofor better cross-shell safetyAlternatively, provide native ffmpeg installs on macOS (
brew install ffmpeg) and Windows (choco install ffmpeg) if tests require ffmpeg there.📝 Committable suggestion
🤖 Prompt for AI Agents