diff --git a/ci/do_ci.ps1 b/ci/do_ci.ps1 index 637e63defc..0ffe716ca1 100644 --- a/ci/do_ci.ps1 +++ b/ci/do_ci.ps1 @@ -6,6 +6,8 @@ trap { $host.SetShouldExit(1) } $action = $args[0] +$nproc = (Get-ComputerInfo).CsNumberOfLogicalProcessors + $SRC_DIR = (Get-Item -Path ".\").FullName $BAZEL_OPTIONS = "--copt=-DENABLE_LOGS_PREVIEW --copt=-DENABLE_ASYNC_EXPORT" @@ -40,7 +42,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -61,7 +63,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -90,7 +92,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -111,7 +113,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -132,7 +134,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -154,7 +156,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -176,7 +178,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -197,7 +199,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit @@ -214,7 +216,7 @@ switch ($action) { if ($exit -ne 0) { exit $exit } - cmake --build . + cmake --build . -j $nproc $exit = $LASTEXITCODE if ($exit -ne 0) { exit $exit