File tree Expand file tree Collapse file tree 2 files changed +6
-26
lines changed
Expand file tree Collapse file tree 2 files changed +6
-26
lines changed Original file line number Diff line number Diff line change @@ -156,28 +156,18 @@ jobs:
156156 strategy :
157157 fail-fast : false
158158 matrix :
159- os :
160- - windows-latest
161159 arch :
162160 - x64
161+ - Win32
162+ - arm64
163163 free-threading :
164164 - false
165165 - true
166- include :
167- # Forks don't have access to Windows on Arm runners. These jobs are skipped below:
168- - os : ${{ github.repository_owner == 'python' && 'windows-aarch64' || 'windows-latest' }}
169- arch : arm64
170- free-threading : false
171- # Forks don't have access to Windows on Arm runners. These jobs are skipped below:
172- - os : ${{ github.repository_owner == 'python' && 'windows-aarch64' || 'windows-latest' }}
173- arch : arm64
174- free-threading : true
175- - os : windows-latest
176- arch : Win32
177- free-threading : false
166+ exclude :
167+ # Skip Win32 on free-threaded builds
168+ - { arch: Win32, free-threading: true }
178169 uses : ./.github/workflows/reusable-windows.yml
179170 with :
180- os : ${{ matrix.os }}
181171 arch : ${{ matrix.arch }}
182172 free-threading : ${{ matrix.free-threading }}
183173
Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ name: Reusable Windows
33on :
44 workflow_call :
55 inputs :
6- os :
7- description : OS to run on
8- required : true
9- type : string
106 arch :
117 description : CPU architecture
128 required : true
2521jobs :
2622 build :
2723 name : Build and test (${{ inputs.arch }})
28- runs-on : ${{ inputs.os }}
24+ runs-on : ${{ inputs.arch == 'arm64' && 'windows-11-arm' || 'windows-latest' }}
2925 timeout-minutes : 60
3026 env :
3127 ARCH : ${{ inputs.arch }}
@@ -37,21 +33,15 @@ jobs:
3733 if : inputs.arch != 'Win32'
3834 run : echo "::add-matcher::.github/problem-matchers/msvc.json"
3935 - name : Build CPython
40- # Forks don't have access to Windows on Arm runners. Skip those:
41- if : inputs.arch != 'arm64' || github.repository_owner == 'python'
4236 run : >-
4337 .\\PCbuild\\build.bat
4438 -e -d -v
4539 -p "${ARCH}"
4640 ${{ fromJSON(inputs.free-threading) && '--disable-gil' || '' }}
4741 shell : bash
4842 - name : Display build info
49- # Forks don't have access to Windows on Arm runners. Skip those:
50- if : inputs.arch != 'arm64' || github.repository_owner == 'python'
5143 run : .\\python.bat -m test.pythoninfo
5244 - name : Tests
53- # Forks don't have access to Windows on Arm runners. Skip those:
54- if : inputs.arch != 'arm64' || github.repository_owner == 'python'
5545 run : >-
5646 .\\PCbuild\\rt.bat
5747 -p "${ARCH}"
You can’t perform that action at this time.
0 commit comments