Skip to content

Commit b9b1329

Browse files
committed
Build Nvidia for Windows
1 parent bef5b93 commit b9b1329

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build-ffmpeg.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
- os: macos-13
2727
arch: x86_64
2828
shell: bash
29-
- os: ubuntu-latest
29+
- os: ubuntu-24.04
3030
arch: i686
3131
shell: bash
32-
- os: ubuntu-latest
32+
- os: ubuntu-24.04
3333
arch: x86_64
3434
shell: bash
3535
- os: windows-latest
@@ -64,7 +64,7 @@ jobs:
6464
env:
6565
CIBW_ARCHS: ${{ matrix.arch }}
6666
CIBW_BEFORE_BUILD: python scripts/build-ffmpeg.py /tmp/vendor --commercial --enable-cuda
67-
CIBW_BEFORE_BUILD_WINDOWS: python scripts\build-ffmpeg.py C:\cibw\vendor --commercial
67+
CIBW_BEFORE_BUILD_WINDOWS: python scripts\build-ffmpeg.py C:\cibw\vendor --commercial --enable-cuda
6868
CIBW_BUILD: cp39-*
6969
CIBW_REPAIR_WHEEL_COMMAND_LINUX: LD_LIBRARY_PATH=/tmp/vendor/lib:$LD_LIBRARY_PATH auditwheel repair -w {dest_dir} {wheel}
7070
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: delvewheel repair --add-path C:\cibw\vendor\bin -w {dest_dir} {wheel}

scripts/build-ffmpeg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def main():
257257

258258
dest_dir = args.destination
259259
community = args.community
260-
enable_cuda = args.enable_cuda and plat == "Linux"
260+
enable_cuda = args.enable_cuda and plat in {"Linux", "Windows"}
261261
del args
262262

263263
output_dir = os.path.abspath("output")

0 commit comments

Comments
 (0)