Skip to content

Commit b51924c

Browse files
committed
Build FFmpeg for Windows / ARM64
1 parent b209395 commit b51924c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/build-ffmpeg.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- os: windows-latest
3636
arch: AMD64
3737
shell: 'msys2 {0}'
38+
- os: windows-11-arm
39+
arch: ARM64
40+
shell: 'msys2 {0}'
3841
- os: ubuntu-24.04-arm
3942
arch: aarch64
4043
shell: bash
@@ -54,12 +57,18 @@ jobs:
5457
run: |
5558
brew update
5659
brew unlink gettext libidn2 libpng libtiff libunistring libx11 libxau libxcb libxdmcp little-cms2 unbound
57-
- uses: msys2/setup-msys2@c52d1fa9c7492275e60fe763540fb601f5f232a1
60+
- uses: msys2/setup-msys2@v2
5861
if: matrix.os == 'windows-latest'
5962
with:
6063
install: base-devel mingw-w64-x86_64-gcc mingw-w64-x86_64-gperf mingw-w64-x86_64-nasm openssl-devel
6164
path-type: inherit
6265
release: false
66+
- uses: msys2/setup-msys2@v2
67+
if: matrix.os == 'windows-11-arm'
68+
with:
69+
install: base-devel mingw-w64-clang-aarch64-gcc-compat mingw-w64-clang-aarch64-gperf mingw-w64-clang-aarch64-nasm openssl-devel
70+
path-type: inherit
71+
release: false
6372
- name: Build FFmpeg
6473
env:
6574
CIBW_ARCHS: ${{ matrix.arch }}

scripts/cibuildpkg.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def get_platform() -> str:
3232
elif system == "Darwin":
3333
return f"macosx_{machine}"
3434
elif system == "Windows":
35-
if struct.calcsize("P") * 8 == 64:
35+
if machine == "ARM64":
36+
return "win_arm64"
37+
elif struct.calcsize("P") * 8 == 64:
3638
return "win_amd64"
3739
else:
3840
return "win32"

0 commit comments

Comments
 (0)