2023-10-30 12:30:40 -03:00
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
2024-01-01 20:16:53 -04:00
|
|
|
free-threading:
|
2023-10-30 12:30:40 -03:00
|
|
|
required: false
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_win32:
|
|
|
|
name: 'build and test (x86)'
|
|
|
|
runs-on: windows-latest
|
|
|
|
timeout-minutes: 60
|
|
|
|
env:
|
|
|
|
IncludeUwp: 'true'
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Build CPython
|
2024-01-01 20:16:53 -04:00
|
|
|
run: .\PCbuild\build.bat -e -d -v -p Win32 ${{ inputs.free-threading && '--disable-gil' || '' }}
|
2023-10-30 12:30:40 -03:00
|
|
|
- name: Display build info
|
|
|
|
run: .\python.bat -m test.pythoninfo
|
|
|
|
- name: Tests
|
2024-01-17 17:52:23 -04:00
|
|
|
run: .\PCbuild\rt.bat -p Win32 -d -q --fast-ci ${{ inputs.free-threading && '--disable-gil' || '' }}
|
2023-10-30 12:30:40 -03:00
|
|
|
|
|
|
|
build_win_amd64:
|
|
|
|
name: 'build and test (x64)'
|
|
|
|
runs-on: windows-latest
|
|
|
|
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
|
2024-01-01 20:16:53 -04:00
|
|
|
run: .\PCbuild\build.bat -e -d -v -p x64 ${{ inputs.free-threading && '--disable-gil' || '' }}
|
2023-10-30 12:30:40 -03:00
|
|
|
- name: Display build info
|
|
|
|
run: .\python.bat -m test.pythoninfo
|
|
|
|
- name: Tests
|
2024-01-17 17:52:23 -04:00
|
|
|
run: .\PCbuild\rt.bat -p x64 -d -q --fast-ci ${{ inputs.free-threading && '--disable-gil' || '' }}
|
2023-10-30 12:30:40 -03:00
|
|
|
|
|
|
|
build_win_arm64:
|
|
|
|
name: 'build (arm64)'
|
|
|
|
runs-on: windows-latest
|
|
|
|
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
|
2024-01-01 20:16:53 -04:00
|
|
|
run: .\PCbuild\build.bat -e -d -v -p arm64 ${{ inputs.free-threading && '--disable-gil' || '' }}
|