Skip to content

Commit d9afae9

Browse files
committed
Build wheels for Windows / ARM64
1 parent f704c97 commit d9afae9

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ jobs:
9292
arch: AMD64
9393
- os: windows-latest
9494
arch: x86
95+
- os: windows-11-arm
96+
arch: ARM64
9597
steps:
9698
- uses: actions/checkout@v4
9799
- uses: actions/setup-python@v5

scripts/build-libsrtp.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ cd %source_dir%
1515
git checkout -qf v2.7.0
1616
cd ..
1717

18-
if "%PYTHON_ARCH%" == "64" (
18+
if "%PYTHON_ARCH%" == "ARM64" (
19+
set CMAKE_OPTIONS=-A ARM64
20+
) else if "%PYTHON_ARCH%" == "64" (
1921
set CMAKE_OPTIONS=-A x64
2022
) else (
2123
set CMAKE_OPTIONS=-A Win32

scripts/fetch-vendor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"urls": ["https://github.com/aiortc/aioquic-openssl/releases/download/3.4.1-1/openssl-{platform}.tar.gz"]
2+
"urls": ["https://github.com/aiortc/aioquic-openssl/releases/download/3.5.4-1/openssl-{platform}.tar.gz"]
33
}

scripts/fetch-vendor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ def get_platform():
2323
machine = os.environ["ARCHFLAGS"].split()[1]
2424
return f"macosx_{machine}"
2525
elif system == "Windows":
26-
if struct.calcsize("P") * 8 == 64:
26+
if machine == "ARM64":
27+
return "win_arm64"
28+
elif struct.calcsize("P") * 8 == 64:
2729
return "win_amd64"
2830
else:
2931
return "win32"

0 commit comments

Comments
 (0)