Skip to content

Commit fff4c7b

Browse files
committed
1Increase concurrent tasks
1 parent 7b6a277 commit fff4c7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ jobs:
279279
[[ "$PR_NO_TEST" = "true" ]] && TEST="--dont-test" || TEST=""
280280
[[ "${PUBLISH_TO_NPM}" = 'true' ]] && NPM_PUBLISH_TRIGGER=$(date +%s%3N) || NPM_PUBLISH_TRIGGER="false"
281281
282+
283+
# CPUs/2
284+
MAX_CONCURRENT_TASKS=$(($(nproc) / 2))
285+
282286
RESULT=0
283287
set -x
284288
# 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:
287291
$TEST \
288292
-Dversion=$VERSION \
289293
--docker-build-options network=host \
290-
--max-concurrent-tasks 1 \
294+
--max-concurrent-tasks $MAX_CONCURRENT_TASKS \
291295
-DlocalAppVersion=$VERSION \
292296
-DpublishToNPM="${PUBLISH_TO_NPM}" \
293297
-DnpmPublishTrigger="${NPM_PUBLISH_TRIGGER}" \

0 commit comments

Comments
 (0)