Skip to content

Commit f7ca893

Browse files
committed
Test aarch64 in github actions
Github recently announced that they have github hosted aarch64 runners available for public repositories: https://github.blog/changelog/2025-01-16-linux-arm64-hosted-runners-now-available-for-free-in-public-repositories-public-preview/ We should take advantage of this to test our aarch64 wheels
1 parent 8f2c994 commit f7ca893

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,29 +215,43 @@ jobs:
215215
3.13.4,
216216
3.13.5,
217217
]
218-
os: [ubuntu-22.04, macos-13, windows-latest]
218+
os: [ubuntu-22.04, macos-13, windows-latest, ubuntu-22.04-arm]
219219
# some versions of python can't be tested on GHA with osx because of SIP:
220220
exclude:
221221
- os: ubuntu-22.04
222222
python-version: 3.6.7
223+
- os: ubuntu-22.04-arm
224+
python-version: 3.6.7
223225
- os: windows-latest
224226
python-version: 3.6.15
225227
- os: ubuntu-22.04
226228
python-version: 3.6.15
229+
- os: ubuntu-22.04-arm
230+
python-version: 3.6.15
227231
- os: ubuntu-22.04
228232
python-version: 3.7.1
233+
- os: ubuntu-22.04-arm
234+
python-version: 3.7.1
229235
- os: windows-latest
230236
python-version: 3.7.17
237+
- os: ubuntu-22.04-arm
238+
python-version: 3.7.17
231239
- os: ubuntu-22.04
232240
python-version: 3.8.0
241+
- os: ubuntu-22.04-arm
242+
python-version: 3.8.0
233243
- os: windows-latest
234244
python-version: 3.8.18
235245
- os: ubuntu-22.04
236246
python-version: 3.9.0
247+
- os: ubuntu-22.04-arm
248+
python-version: 3.9.0
237249
- os: windows-latest
238250
python-version: 3.9.23
239251
- os: ubuntu-22.04
240252
python-version: 3.10.0
253+
- os: ubuntu-22.04-arm
254+
python-version: 3.10.0
241255
- os: windows-latest
242256
python-version: 3.10.18
243257
- os: macos-13

ci/update_python_test_versions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ def update_python_test_versions():
109109
exclusions.append(" - os: ubuntu-22.04\n")
110110
exclusions.append(f" python-version: {v}\n")
111111

112+
if ("linux", "arm64") not in platforms[v]:
113+
exclusions.append(" - os: ubuntu-22.04-arm\n")
114+
exclusions.append(f" python-version: {v}\n")
115+
112116
first_exclude_line = lines.index(" exclude:\n", first_line)
113117
last_exclude_line = lines.index("\n", first_exclude_line)
114118
lines = lines[: first_exclude_line + 1] + exclusions + lines[last_exclude_line:]

0 commit comments

Comments
 (0)