Skip to content

Commit b55fdce

Browse files
Greenie0701indygreg
authored andcommitted
ci: switch Windows ARM wheel builds to use ARM runners
1 parent 47ae4fa commit b55fdce

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

.github/workflows/wheel.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,33 +102,25 @@ jobs:
102102
- 'x86'
103103
- 'x64'
104104
- 'arm64'
105-
runs-on: 'windows-2022'
105+
exclude:
106+
- py: '3.8'
107+
arch: 'arm64'
108+
runs-on: ${{ matrix.arch == 'arm64' && 'windows-11-arm' || 'windows-2022' }}
106109
env:
107110
ZSTD_WARNINGS_AS_ERRORS: '1'
108111
steps:
109112
- name: Set up Python
110113
uses: actions/setup-python@v5
111114
with:
112115
python-version: ${{ matrix.py }}
113-
architecture: ${{ matrix.arch == 'arm64' && 'x64' || matrix.arch }}
116+
architecture: ${{ matrix.arch }}
114117

115118
- uses: actions/checkout@v4
116119

117120
- name: Build Wheel
118-
if: matrix.arch != 'arm64'
119121
run: |
120122
python -m pip wheel -w dist .
121123
122-
- name: Build Wheel
123-
if: matrix.arch == 'arm64'
124-
shell: bash
125-
run: |
126-
python -m pip install --require-hashes -r ci/requirements.txt
127-
export CIBW_ARCHS=ARM64
128-
export CIBW_BUILD=cp$(echo ${{ matrix.py }} | tr -d .)-*
129-
export CIBW_BUILD_VERBOSITY=1
130-
cibuildwheel --output-dir dist --archs ARM64
131-
132124
- name: Upload Wheel
133125
uses: actions/upload-artifact@v4
134126
with:

0 commit comments

Comments
 (0)