mirror of
https://github.com/python/cpython.git
synced 2024-11-22 13:28:21 +01:00
e4cab488d4
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
name: Reusable Windows
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
arch:
|
|
description: CPU architecture
|
|
required: true
|
|
type: string
|
|
free-threading:
|
|
description: Whether to compile CPython in free-threading mode
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
|
|
env:
|
|
IncludeUwp: >-
|
|
true
|
|
|
|
jobs:
|
|
build:
|
|
name: >-
|
|
build${{ inputs.arch != 'arm64' && ' and test' || '' }}
|
|
(${{ inputs.arch }})
|
|
runs-on: windows-latest
|
|
timeout-minutes: 60
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Register MSVC problem matcher
|
|
if: inputs.arch != 'Win32'
|
|
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
|
- name: Build CPython
|
|
run: >-
|
|
.\PCbuild\build.bat
|
|
-e -d -v
|
|
-p ${{ inputs.arch }}
|
|
${{ fromJSON(inputs.free-threading) && '--disable-gil' || '' }}
|
|
- name: Display build info
|
|
if: inputs.arch != 'arm64'
|
|
run: .\python.bat -m test.pythoninfo
|
|
- name: Tests
|
|
if: inputs.arch != 'arm64'
|
|
run: >-
|
|
.\PCbuild\rt.bat
|
|
-p ${{ inputs.arch }}
|
|
-d -q --fast-ci
|
|
${{ fromJSON(inputs.free-threading) && '--disable-gil' || '' }}
|