mirror of
https://github.com/python/cpython.git
synced 2026-06-29 04:10:54 +00:00
gh-151929: Add pythoninfo commands to Platforms/WASI (#152136)
The "build" command now also runs "pythoninfo-build" and "pythoninfo-host" commands. If no subcommand is provided, display the help. GitHub Action "WASI": * Add "pythoninfo-build" and "pythoninfo-host" commands. * Remove unused and outdated CROSS_BUILD_PYTHON environment variable.
This commit is contained in:
parent
7676427cd8
commit
7c8163719c
3 changed files with 44 additions and 6 deletions
11
.github/workflows/reusable-wasi.yml
vendored
11
.github/workflows/reusable-wasi.yml
vendored
|
|
@ -16,7 +16,6 @@ jobs:
|
|||
timeout-minutes: 60
|
||||
env:
|
||||
WASMTIME_VERSION: 38.0.3
|
||||
CROSS_BUILD_PYTHON: cross-build/build
|
||||
CROSS_BUILD_WASI: cross-build/wasm32-wasip1
|
||||
steps:
|
||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||
|
|
@ -54,14 +53,16 @@ jobs:
|
|||
run: python3 Platforms/WASI configure-build-python -- --config-cache --with-pydebug
|
||||
- name: "Make build Python"
|
||||
run: python3 Platforms/WASI make-build-python
|
||||
- name: "Configure host"
|
||||
- name: "Display build info of the build Python"
|
||||
run: python3 Platforms/WASI pythoninfo-build
|
||||
- name: "Configure host/WASI Python"
|
||||
# `--with-pydebug` inferred from configure-build-python
|
||||
run: python3 Platforms/WASI configure-host -- --config-cache
|
||||
env:
|
||||
WASI_SDK_PATH: ${{ steps.install-wasi-sdk.outputs.wasi-sdk-path }}
|
||||
- name: "Make host"
|
||||
- name: "Make host/WASI Python"
|
||||
run: python3 Platforms/WASI make-host
|
||||
- name: "Display build info"
|
||||
run: make --directory "${CROSS_BUILD_WASI}" pythoninfo
|
||||
- name: "Display build info of the host/WASI Python"
|
||||
run: python3 Platforms/WASI pythoninfo-host
|
||||
- name: "Test"
|
||||
run: make --directory "${CROSS_BUILD_WASI}" test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue