Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions master/custom/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,6 +1256,10 @@ def host_triple(props):
return build_triple.split("-")[0] + "-linux-android"


##############################################################################
############################ VALGRIND BUILDS ###############################
##############################################################################

class ValgrindBuild(UnixBuild):
buildersuffix = ".valgrind"
configureFlags = [
Expand Down Expand Up @@ -1319,3 +1323,77 @@ def setup(self, parallel, branch, **kwargs):
))

self.addStep(Clean())


##############################################################################
########################### EMSCRIPTEN BUILDS ##############################
##############################################################################

class EmscriptenBuild(BaseBuild):
"""Emscripten build.

* The Emscripten SDK must be installed, and configured to use the SDK
version required by the current main PR.

"""
buildersuffix = ".emscripten"
factory_tags = ["emscripten"]

def setup(self, **kwargs):
compile_environ = {
"PATH": os.pathsep.join([
"/home/emscripten/emsdk",
"/home/emscripten/emsdk/upstream/emscripten",
"/home/emscripten/.local/bin",
"/usr/local/bin",
"/usr/bin",
"/bin",
]),
"EMSDK": "/home/emscripten/emsdk",
}

self.addSteps([
Configure(
name="Configure build Python",
command=["python3", "Tools/wasm/emscripten", "configure-build-python"],
env=compile_environ,
),
Compile(
name="Compile build Python",
command=["python3", "Tools/wasm/emscripten", "make-build-python"],
env=compile_environ,
),
Compile(
name="Compile host libFFI",
command=["python3", "Tools/wasm/emscripten", "make-libffi"],
env=compile_environ,
),
Configure(
name="Configure host Python",
command=["python3", "Tools/wasm/emscripten", "configure-host"],
env=compile_environ,
),
Compile(
name="Compile host Python",
command=["python3", "Tools/wasm/emscripten", "make-host"],
env=compile_environ,
),
Test(
command=[
"cross-build/wasm32-emscripten/build/python/python.sh",
"-m", "test",
"-v",
"-uall",
"--rerun",
"--single-process",
"-W",
],
env=compile_environ,
timeout=step_timeout(self.test_timeout),
),
Clean(
name="Clean the builds",
command=["python3", "Tools/wasm/emscripten", "clean"],
env=compile_environ,
)
])
6 changes: 6 additions & 0 deletions master/custom/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ def get_workers(settings):
not_branches=['3.9', '3.10', '3.11', '3.12'],
parallel_builders=4,
),
cpw(
name="rkm-emscripten",
tags=['emscripten'],
not_branches=['3.9', '3.10', '3.11', '3.12', '3.13'],
parallel_builders=4,
),
cpw(
name="mhsmith-android-aarch64",
tags=['android'],
Expand Down