Skip to content

Commit 5467fa8

Browse files
authored
[BUILD] Add win_arm64 platform support (#2478)
1 parent d26fd74 commit 5467fa8

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/build_test.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,22 @@ jobs:
7979
id: manylinux_aarch64
8080
- image: windows-latest
8181
id: win_amd64
82+
- image: windows-11-arm
83+
id: win_arm64
8284
- image: macos-latest
8385
id: macosx_x86_64
8486
- image: macos-latest
8587
id: macosx_arm64
8688
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
89+
exclude:
90+
- os:
91+
image: windows-11-arm
92+
id: win_arm64
93+
python-version: "3.9"
94+
- os:
95+
image: windows-11-arm
96+
id: win_arm64
97+
python-version: "3.10"
8798
name: Build ${{ matrix.os.id }}-py${{ matrix.python-version }}
8899
runs-on: ${{ matrix.os.image }}
89100
steps:
@@ -105,6 +116,7 @@ jobs:
105116
uses: pypa/[email protected]
106117
env:
107118
CIBW_BUILD: cp${{ env.shortver }}-${{ matrix.os.id }}
119+
CIBW_ARCHS_WINDOWS: ${{ matrix.os.id == 'win_arm64' && 'ARM64' || 'auto' }}
108120
MACOSX_DEPLOYMENT_TARGET: 10.14 # Should be kept in sync with ci/build_darwin.sh
109121
with:
110122
output-dir: dist
@@ -131,8 +143,19 @@ jobs:
131143
download_name: macosx_x86_64
132144
- image_name: windows-latest
133145
download_name: win_amd64
146+
- image_name: windows-11-arm
147+
download_name: win_arm64
134148
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
135149
cloud-provider: [aws, azure, gcp]
150+
exclude:
151+
- os:
152+
image_name: windows-11-arm
153+
download_name: win_arm64
154+
python-version: "3.9"
155+
- os:
156+
image_name: windows-11-arm
157+
download_name: win_arm64
158+
python-version: "3.10"
136159

137160
steps:
138161
- uses: actions/checkout@v4
@@ -145,7 +168,7 @@ jobs:
145168
- name: Set up Java
146169
uses: actions/setup-java@v4 # for wiremock
147170
with:
148-
java-version: 11
171+
java-version: ${{ matrix.os.download_name == 'win_arm64' && '21.0.5+11.0.LTS' || '11' }}
149172
distribution: 'temurin'
150173
java-package: 'jre'
151174
- name: Fetch Wiremock

0 commit comments

Comments
 (0)