FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/.github/workflows/reusable-wasi.yml at feature-json-array-hook · jsbueno/cpython · GitHub
jsbueno
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
.github
/
workflows
/
reusable-wasi.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
64 lines (61 loc) · 2.13 KB
Breadcrumbs
cpython
/
.github
/
workflows
/
reusable-wasi.yml
Copy path
File metadata and controls
64 lines (61 loc) · 2.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name
:
Reusable WASI
on
:
workflow_call
:
env
:
FORCE_COLOR
:
1
jobs
:
build-wasi-reusable
:
name
:
'
build and test
'
runs-on
:
ubuntu-24.04-arm
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@v6
with
:
persist-credentials
:
false
#
No problem resolver registered as one doesn't currently exist for Clang.
-
name
:
"
Install wasmtime
"
uses
:
bytecodealliance/actions/wasmtime/setup@v1
with
:
version
:
${{ env.WASMTIME_VERSION }}
-
name
:
"
Read WASI SDK version
"
id
:
wasi-sdk-version
run
:
|
import tomllib
from pathlib import Path
import os
config = tomllib.loads(Path("Platforms/WASI/config.toml").read_text())
version = config["targets"]["wasi-sdk"]
with open(os.environ["GITHUB_OUTPUT"], "a") as f:
f.write(f"version={version}\n")
shell
:
python
-
name
:
"
Install WASI SDK
"
id
:
install-wasi-sdk
uses
:
bytecodealliance/setup-wasi-sdk-action@b2de090b44eb70013ee96b393727d473b35e1728
with
:
version
:
${{ steps.wasi-sdk-version.outputs.version }}
add-to-path
:
false
-
name
:
"
Install Python
"
uses
:
actions/setup-python@v6
with
:
python-version
:
'
3.x
'
-
name
:
"
Runner image version
"
run
:
echo "IMAGE_OS_VERSION=${ImageOS}-${ImageVersion}" >> "$GITHUB_ENV"
-
name
:
"
Configure build Python
"
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
"
#
`--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
"
run
:
python3 Platforms/WASI make-host
-
name
:
"
Display build info
"
run
:
make --directory "${CROSS_BUILD_WASI}" pythoninfo
-
name
:
"
Test
"
run
:
make --directory "${CROSS_BUILD_WASI}" test
Back
|
FazBrowse Home
|
New Git URL