mirror of https://github.com/python/cpython
no-issue: Use the official term "free-threading" for GitHub Action (gh-113622)
This commit is contained in:
parent
b2566d89ce
commit
3aadb95085
|
@ -187,13 +187,13 @@ jobs:
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
uses: ./.github/workflows/reusable-windows.yml
|
uses: ./.github/workflows/reusable-windows.yml
|
||||||
|
|
||||||
build_windows_free_threaded:
|
build_windows_free_threading:
|
||||||
name: 'Windows (free-threaded)'
|
name: 'Windows (free-threading)'
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
uses: ./.github/workflows/reusable-windows.yml
|
uses: ./.github/workflows/reusable-windows.yml
|
||||||
with:
|
with:
|
||||||
free-threaded: true
|
free-threading: true
|
||||||
|
|
||||||
build_macos:
|
build_macos:
|
||||||
name: 'macOS'
|
name: 'macOS'
|
||||||
|
@ -203,14 +203,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
||||||
|
|
||||||
build_macos_free_threaded:
|
build_macos_free_threading:
|
||||||
name: 'macOS (free-threaded)'
|
name: 'macOS (free-threading)'
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
uses: ./.github/workflows/reusable-macos.yml
|
uses: ./.github/workflows/reusable-macos.yml
|
||||||
with:
|
with:
|
||||||
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
config_hash: ${{ needs.check_source.outputs.config_hash }}
|
||||||
free-threaded: true
|
free-threading: true
|
||||||
|
|
||||||
build_ubuntu:
|
build_ubuntu:
|
||||||
name: 'Ubuntu'
|
name: 'Ubuntu'
|
||||||
|
@ -225,8 +225,8 @@ jobs:
|
||||||
--with-pydebug \
|
--with-pydebug \
|
||||||
--with-openssl=$OPENSSL_DIR
|
--with-openssl=$OPENSSL_DIR
|
||||||
|
|
||||||
build_ubuntu_free_threaded:
|
build_ubuntu_free_threading:
|
||||||
name: 'Ubuntu (free-threaded)'
|
name: 'Ubuntu (free-threading)'
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
uses: ./.github/workflows/reusable-ubuntu.yml
|
uses: ./.github/workflows/reusable-ubuntu.yml
|
||||||
|
@ -504,12 +504,12 @@ jobs:
|
||||||
- check-docs
|
- check-docs
|
||||||
- check_generated_files
|
- check_generated_files
|
||||||
- build_macos
|
- build_macos
|
||||||
- build_macos_free_threaded
|
- build_macos_free_threading
|
||||||
- build_ubuntu
|
- build_ubuntu
|
||||||
- build_ubuntu_free_threaded
|
- build_ubuntu_free_threading
|
||||||
- build_ubuntu_ssltests
|
- build_ubuntu_ssltests
|
||||||
- build_windows
|
- build_windows
|
||||||
- build_windows_free_threaded
|
- build_windows_free_threading
|
||||||
- test_hypothesis
|
- test_hypothesis
|
||||||
- build_asan
|
- build_asan
|
||||||
- cifuzz
|
- cifuzz
|
||||||
|
@ -537,12 +537,12 @@ jobs:
|
||||||
&& '
|
&& '
|
||||||
check_generated_files,
|
check_generated_files,
|
||||||
build_macos,
|
build_macos,
|
||||||
build_macos_free_threaded,
|
build_macos_free_threading,
|
||||||
build_ubuntu,
|
build_ubuntu,
|
||||||
build_ubuntu_free_threaded,
|
build_ubuntu_free_threading,
|
||||||
build_ubuntu_ssltests,
|
build_ubuntu_ssltests,
|
||||||
build_windows,
|
build_windows,
|
||||||
build_windows_free_threaded,
|
build_windows_free_threading,
|
||||||
build_asan,
|
build_asan,
|
||||||
'
|
'
|
||||||
|| ''
|
|| ''
|
||||||
|
|
|
@ -4,7 +4,7 @@ on:
|
||||||
config_hash:
|
config_hash:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
free-threaded:
|
free-threading:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -35,7 +35,7 @@ jobs:
|
||||||
./configure \
|
./configure \
|
||||||
--config-cache \
|
--config-cache \
|
||||||
--with-pydebug \
|
--with-pydebug \
|
||||||
${{ inputs.free-threaded && '--disable-gil' || '' }} \
|
${{ inputs.free-threading && '--disable-gil' || '' }} \
|
||||||
--prefix=/opt/python-dev \
|
--prefix=/opt/python-dev \
|
||||||
--with-openssl="$(brew --prefix openssl@3.0)"
|
--with-openssl="$(brew --prefix openssl@3.0)"
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
free-threaded:
|
free-threading:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
@ -16,7 +16,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
run: .\PCbuild\build.bat -e -d -v -p Win32 ${{ inputs.free-threaded && '--disable-gil' || '' }}
|
run: .\PCbuild\build.bat -e -d -v -p Win32 ${{ inputs.free-threading && '--disable-gil' || '' }}
|
||||||
- name: Display build info
|
- name: Display build info
|
||||||
run: .\python.bat -m test.pythoninfo
|
run: .\python.bat -m test.pythoninfo
|
||||||
- name: Tests
|
- name: Tests
|
||||||
|
@ -33,7 +33,7 @@ jobs:
|
||||||
- name: Register MSVC problem matcher
|
- name: Register MSVC problem matcher
|
||||||
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
run: .\PCbuild\build.bat -e -d -v -p x64 ${{ inputs.free-threaded && '--disable-gil' || '' }}
|
run: .\PCbuild\build.bat -e -d -v -p x64 ${{ inputs.free-threading && '--disable-gil' || '' }}
|
||||||
- name: Display build info
|
- name: Display build info
|
||||||
run: .\python.bat -m test.pythoninfo
|
run: .\python.bat -m test.pythoninfo
|
||||||
- name: Tests
|
- name: Tests
|
||||||
|
@ -50,4 +50,4 @@ jobs:
|
||||||
- name: Register MSVC problem matcher
|
- name: Register MSVC problem matcher
|
||||||
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
run: echo "::add-matcher::.github/problem-matchers/msvc.json"
|
||||||
- name: Build CPython
|
- name: Build CPython
|
||||||
run: .\PCbuild\build.bat -e -d -v -p arm64 ${{ inputs.free-threaded && '--disable-gil' || '' }}
|
run: .\PCbuild\build.bat -e -d -v -p arm64 ${{ inputs.free-threading && '--disable-gil' || '' }}
|
||||||
|
|
Loading…
Reference in New Issue