-
feat: add GHA workflow to build opencv wheels without ffmpeg (#4335)
发布于
2026-04-13 22:06:30 +00:00 Summary
- Adds a
workflow_dispatchGHA workflow that builds
opencv-python-headlessfrom source withWITH_FFMPEG=OFFon amd64 and
arm64 - Wheels are uploaded as a GitHub release so Dockerfiles can download
them at build time - Eliminates the 14 bundled ffmpeg CVEs present in the stock PyPI wheels
Test plan
- Trigger the workflow manually with the default inputs
(opencv-python-headless==4.12.0.88) - Verify wheels are produced for both architectures
- Verify the GitHub release is created with both wheels attached
- Confirm the built wheels have no
.libsdirectory (no bundled
ffmpeg)
🤖 Generated with Claude Code
Note
Low Risk
Low risk: changes are confined to GitHub Actions workflows, with the
main impact being additional CI/release automation and a simple
tag-based guard on PyPI publishing.Overview
Adds a newworkflow_dispatchGitHub Actions workflow to build
opencv-contrib-python-headlesswheels from source foramd64and
arm64withWITH_FFMPEG=OFF, validate the resultingcv2install has
no bundled.libsand includes key contrib modules, and publish the
wheels via a GitHub Release.Updates the existing release workflow to skip tags prefixed with
opencv-, preventing these wheel-only releases from triggering the
normal PyPI publish job.Reviewed by Cursor Bugbot for commit
f03df11f0e35e226737d9146f3ac2145999fcdbe. Bugbot is set up for automated
code reviews on this repo. Configure
here.
Co-authored-by: Claude Opus 4.6 (1M context) noreply@anthropic.com
下载附件
- Adds a