Skip to content

Commit 8f02c3d

Browse files
committed
Reduce parallelism of runtime build
1 parent 898c789 commit 8f02c3d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

product/runtime/build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,11 @@ if (!(cmakeBuildType in KNOWN_BUILD_TYPES)) {
302302
group = "build"
303303
dependsOn cmake
304304
executable "$sdkCmakeDir/bin/cmake"
305-
args "--build", cmakeBuildSubdir
305+
306+
// Ninja's parallel build defaults to the number of processors plus 2, which
307+
// overloads the GitHub Actions runner.
308+
args "--build", cmakeBuildSubdir,
309+
"--parallel", Runtime.getRuntime().availableProcessors()
306310
}
307311
if (abi != "host") {
308312
for (name in ["chaquopy", "libchaquopy_java"]) {

0 commit comments

Comments
 (0)