forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-111062: Reusable Windows build that supports free-threaded m…
…ode as the conditional CI (python#111493) * pythongh-111062 Set up free-threaded CI for windows Co-authored-by: Donghee Na <donghee.na@python.org> * Apply suggestions from code review Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Update * Update names * Add files * Update * Revert "Update" This reverts commit 4f17e1a. * fix --------- Co-authored-by: juanjose.tenorio <juanjose2611@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
- Loading branch information
1 parent
c6def36
commit 4ebf2fa
Showing
2 changed files
with
63 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
on: | ||
workflow_call: | ||
inputs: | ||
free-threaded: | ||
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 | ||
run: .\PCbuild\build.bat -e -d -p Win32 ${{ inputs.free-threaded && '--disable-gil' || '' }} | ||
- name: Display build info | ||
run: .\python.bat -m test.pythoninfo | ||
- name: Tests | ||
run: .\PCbuild\rt.bat -p Win32 -d -q --fast-ci | ||
|
||
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 | ||
run: .\PCbuild\build.bat -e -d -p x64 ${{ inputs.free-threaded && '--disable-gil' || '' }} | ||
- name: Display build info | ||
run: .\python.bat -m test.pythoninfo | ||
- name: Tests | ||
run: .\PCbuild\rt.bat -p x64 -d -q --fast-ci | ||
|
||
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 | ||
run: .\PCbuild\build.bat -e -d -p arm64 ${{ inputs.free-threaded && '--disable-gil' || '' }} |