File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -279,6 +279,10 @@ jobs:
279
279
[[ "$PR_NO_TEST" = "true" ]] && TEST="--dont-test" || TEST=""
280
280
[[ "${PUBLISH_TO_NPM}" = 'true' ]] && NPM_PUBLISH_TRIGGER=$(date +%s%3N) || NPM_PUBLISH_TRIGGER="false"
281
281
282
+
283
+ # CPUs/2
284
+ MAX_CONCURRENT_TASKS=$(($(nproc) / 2))
285
+
282
286
RESULT=0
283
287
set -x
284
288
# CI=true is a var set by GHA. Unsetting it for the build, as yarn builds treat warnings as errors if that var is set to true
@@ -287,7 +291,7 @@ jobs:
287
291
$TEST \
288
292
-Dversion=$VERSION \
289
293
--docker-build-options network=host \
290
- --max-concurrent-tasks 1 \
294
+ --max-concurrent-tasks $MAX_CONCURRENT_TASKS \
291
295
-DlocalAppVersion=$VERSION \
292
296
-DpublishToNPM="${PUBLISH_TO_NPM}" \
293
297
-DnpmPublishTrigger="${NPM_PUBLISH_TRIGGER}" \
You can’t perform that action at this time.
0 commit comments