ci: add support for building windows on arm wheels (#643)

This commit is contained in:
MS-GITS 2025-09-26 09:47:17 +05:30 committed by GitHub
parent d9873dab04
commit c2a9f1fda5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View file

@ -9,9 +9,13 @@ jobs:
test:
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
os: ["ubuntu-latest", "windows-latest", "windows-11-arm", "macos-latest"]
py: ["3.14-dev", "3.13", "3.12", "3.11", "3.10", "3.9"]
exclude:
- os: windows-11-arm
py: "3.9"
- os: windows-11-arm
py: "3.10"
runs-on: ${{ matrix.os }}
name: Run test with Python ${{ matrix.py }} on ${{ matrix.os }}
@ -29,8 +33,8 @@ jobs:
- name: Prepare
shell: bash
run: |
pip install -U pip
pip install -r requirements.txt pytest
python -m pip install -U pip
python -m pip install -r requirements.txt pytest
- name: Build
shell: bash

View file

@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
# macos-13 is for intel
os: ["ubuntu-24.04", "ubuntu-24.04-arm", "windows-latest", "macos-13", "macos-latest"]
os: ["ubuntu-24.04", "ubuntu-24.04-arm", "windows-latest", "windows-11-arm", "macos-13", "macos-latest"]
runs-on: ${{ matrix.os }}
name: Build wheels on ${{ matrix.os }}
@ -33,7 +33,7 @@ jobs:
env:
CIBW_TEST_REQUIRES: "pytest"
CIBW_TEST_COMMAND: "pytest {package}/test"
CIBW_SKIP: "pp* cp38-*"
CIBW_SKIP: "pp* cp38-* cp39-win_arm64 cp310-win_arm64"
- name: Build sdist
if: runner.os == 'Linux' && runner.arch == 'X64'