diff --git a/.github/workflows/kit.yml b/.github/workflows/kit.yml index d56705f87..1fb81beae 100644 --- a/.github/workflows/kit.yml +++ b/.github/workflows/kit.yml @@ -39,7 +39,7 @@ env: PIP_DISABLE_PIP_VERSION_CHECK: 1 # PYVERSIONS: changing the list of versions will change the number of # expected distributions. - EXPECTED: 63 + EXPECTED: 67 permissions: contents: read @@ -78,7 +78,7 @@ jobs: # os_archs = { # "ubuntu": ["x86_64", "i686", "aarch64"], # "macos": ["arm64", "x86_64"], - # "windows": ["x86", "AMD64"], + # "windows": ["x86", "AMD64", "ARM64"], # } # # PYVERSIONS. Available versions: https://pypi.org/project/cibuildwheel/ # # PyPy versions are handled further below in the "pypy" step. @@ -87,6 +87,7 @@ jobs: # # Some OS/arch combinations need overrides for the Python versions: # os_arch_pys = { # # ("macos", "arm64"): ["cp38", "cp39", "cp310", "cp311", "cp312"], + # ("windows", "ARM64"): ["cp311", "cp312", "cp313"], # } # # #----- ^^^ ---------------------- ^^^ ----- @@ -102,6 +103,9 @@ jobs: # } # if the_os == "macos": # them["os-version"] = "13" + # if the_os == "windows" and the_arch == "ARM64": + # them["os-version"] = "11-arm" + # them["minpy"] = "3.11" # if the_arch == "aarch64": # # https://github.com/pypa/cibuildwheel/issues/2257 # them["os-version"] = "22.04-arm" @@ -142,7 +146,10 @@ jobs: - {"os": "windows", "py": "cp311", "arch": "AMD64"} - {"os": "windows", "py": "cp312", "arch": "AMD64"} - {"os": "windows", "py": "cp313", "arch": "AMD64"} - # [[[end]]] (checksum: 7c3758a4ca41df53d7ebcad68f12d0d0) + - {"os": "windows", "py": "cp311", "arch": "ARM64", "os-version": "11-arm", "minpy": "3.11"} + - {"os": "windows", "py": "cp312", "arch": "ARM64", "os-version": "11-arm", "minpy": "3.11"} + - {"os": "windows", "py": "cp313", "arch": "ARM64", "os-version": "11-arm", "minpy": "3.11"} + # [[[end]]] (checksum: ce8e88f33d7db22f1e21a767e3256a00) fail-fast: false steps: @@ -154,10 +161,20 @@ jobs: - name: "Install Python" uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 with: - python-version: "3.9" # Minimum of PYVERSIONS + python-version: "${{ matrix.minpy || '3.9' }}" # Minimum of PYVERSIONS cache: pip cache-dependency-path: 'requirements/*.pip' + # rust toolchain is not currently installed on windows arm64 images https://github.com/actions/partner-runner-images/issues/77 + - if: ${{ matrix.os-version == '11-arm' }} + name: Setup rust + id: setup-rust + shell: pwsh + run: | + Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -OutFile .\rustup-init.exe + .\rustup-init.exe -y + Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.cargo\bin" + - name: "Install tools" run: | python -m pip install -r requirements/kit.pip