cpython/.github/workflows/reusable-windows.yml
Hugo van Kemenade 262aa73bd7
[3.11] gh-138744: GitHub Actions: pin to windows-2022 (GH-138743) (GH-138755)
* [3.11] gh-138744: GitHub Actions: pin to `windows-2022` (GH-138743)
(cherry picked from commit 6e78a539bf)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>

* Update .azure-pipelines/libffi-build.yml
2025-09-13 22:36:27 +02:00

53 lines
1.6 KiB
YAML

on:
workflow_call:
inputs:
free-threading:
required: false
type: boolean
default: false
jobs:
build_win32:
name: 'build and test (x86)'
runs-on: windows-2022
timeout-minutes: 60
env:
IncludeUwp: 'true'
steps:
- uses: actions/checkout@v4
- name: Build CPython
run: .\PCbuild\build.bat -e -d -p Win32 ${{ inputs.free-threading && '--disable-gil' || '' }}
- name: Display build info
run: .\python.bat -m test.pythoninfo
- name: Tests
run: .\PCbuild\rt.bat -p Win32 -d -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
build_win_amd64:
name: 'build and test (x64)'
runs-on: windows-2022
timeout-minutes: 60
env:
IncludeUwp: 'true'
steps:
- uses: actions/checkout@v4
- name: Register MSVC problem matcher
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
- name: Build CPython
run: .\PCbuild\build.bat -e -d -p x64 ${{ inputs.free-threading && '--disable-gil' || '' }}
- name: Display build info
run: .\python.bat -m test.pythoninfo
- name: Tests
run: .\PCbuild\rt.bat -p x64 -d -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
build_win_arm64:
name: 'build (arm64)'
runs-on: windows-2022
timeout-minutes: 60
env:
IncludeUwp: 'true'
steps:
- uses: actions/checkout@v4
- name: Register MSVC problem matcher
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
- name: Build CPython
run: .\PCbuild\build.bat -e -d -p arm64 ${{ inputs.free-threading && '--disable-gil' || '' }}