Skip to content

Commit 0b8c1f7

Browse files
committed
Added back CI thread logic
Signed-off-by: Nick Avramoussis <[email protected]>
1 parent 56bbe63 commit 0b8c1f7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

ci/build.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,15 @@ declare -A PARMS
2929
PARMS[--components]=core,bin
3030
PARMS[--target]=install
3131
PARMS[--build-dir]=build
32-
# github actions runners have 8 threads
33-
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
34-
PARMS[-j]=8
32+
33+
if [[ $RUNNER_NAME == *"8c-32g-300h"* ]]; then
34+
# ASWF github actions runners have 8 threads
35+
PARMS[-j]=8
36+
else
37+
# Github actions runners have 2 threads
38+
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
39+
PARMS[-j]=2
40+
fi
3541

3642
# Available options for --components
3743
declare -A COMPONENTS

0 commit comments

Comments
 (0)