|
73 | 73 | name: wheels-windows-${{ matrix.target }}
|
74 | 74 | path: dist
|
75 | 75 |
|
| 76 | + windows-arm: |
| 77 | + runs-on: windows-11-arm |
| 78 | + strategy: |
| 79 | + matrix: |
| 80 | + target: [aarch64-pc-windows-msvc] |
| 81 | + steps: |
| 82 | + - uses: actions/checkout@v3 |
| 83 | + - uses: actions/setup-python@v4 |
| 84 | + with: |
| 85 | + python-version: 3.12 |
| 86 | + architecture: arm64 |
| 87 | + # rust toolchain is not currently installed on windopws arm64 images https://github.com/actions/partner-runner-images/issues/77 |
| 88 | + - name: Setup rust |
| 89 | + id: setup-rust |
| 90 | + run: | |
| 91 | + Invoke-WebRequest https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe -OutFile .\rustup-init.exe |
| 92 | + .\rustup-init.exe -y |
| 93 | + Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.cargo\bin" |
| 94 | + - name: Build wheels |
| 95 | + uses: pyo3/maturin-action@v1 |
| 96 | + with: |
| 97 | + target: ${{ matrix.target }} |
| 98 | + args: --release --out dist -i |
| 99 | + - name: Build free-threaded wheels |
| 100 | + uses: pyo3/maturin-action@v1 |
| 101 | + with: |
| 102 | + target: ${{ matrix.target }} |
| 103 | + args: --release --out dist -i python3.13t |
| 104 | + - name: Install built wheel |
| 105 | + run: | |
| 106 | + pip install nh3 --no-index --find-links dist --force-reinstall |
| 107 | + pip install pytest |
| 108 | + cd tests && pytest |
| 109 | + - name: Upload wheels |
| 110 | + uses: actions/upload-artifact@v4 |
| 111 | + with: |
| 112 | + name: wheels-windows-arm-${{ matrix.target }} |
| 113 | + path: dist |
| 114 | + |
76 | 115 | linux:
|
77 | 116 | runs-on: ubuntu-latest
|
78 | 117 | strategy:
|
@@ -278,7 +317,7 @@ jobs:
|
278 | 317 | runs-on: ubuntu-latest
|
279 | 318 | if: "startsWith(github.ref, 'refs/tags/')"
|
280 | 319 | needs:
|
281 |
| - [macos, windows, linux, linux-cross, musllinux, musllinux-cross, sdist] |
| 320 | + [macos, windows, windows-arm, linux, linux-cross, musllinux, musllinux-cross, sdist] |
282 | 321 | steps:
|
283 | 322 | - uses: actions/download-artifact@v4
|
284 | 323 | with:
|
|
0 commit comments