Skip to content

Commit 214166b

Browse files
committed
CI parallel build & test on Strawberry
1 parent 5766151 commit 214166b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/smoke-windows-strawberryperl.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ jobs:
5050
$MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{g++})"
5151
$MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{ld})"
5252
$MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{gmake})"
53+
- name: CPUs
54+
shell: bash
55+
run: |
56+
export SYSTEM_CORES=$( powershell -NoProfile -Command "& { Get-WmiObject Win32_Processor | Select-Object -Property NumberOfCores }" | perl -0777 -ne 'print $1, "\n" while /(\d+)/g' );
57+
echo "SYSTEM_CORES=$SYSTEM_CORES" >> $GITHUB_ENV
58+
echo "MAKEFLAGS=-j$SYSTEM_CORES" >> $GITHUB_ENV
59+
echo "HARNESS_OPTIONS=j$SYSTEM_CORES" >> $GITHUB_ENV
5360
- name: Configure
5461
shell: bash
5562
run: |
@@ -102,6 +109,13 @@ jobs:
102109
$MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{g++})"
103110
$MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{ld})"
104111
$MYPERL -MIPC::Cmd -E "say IPC::Cmd::can_run(qq{dmake})"
112+
- name: CPUs
113+
shell: bash
114+
run: |
115+
export SYSTEM_CORES=$( powershell -NoProfile -Command "& { Get-WmiObject Win32_Processor | Select-Object -Property NumberOfCores }" | perl -0777 -ne 'print $1, "\n" while /(\d+)/g' );
116+
echo "SYSTEM_CORES=$SYSTEM_CORES" >> $GITHUB_ENV
117+
echo "MAXPROCESS=$SYSTEM_CORES" >> $GITHUB_ENV
118+
echo "HARNESS_OPTIONS=j$SYSTEM_CORES" >> $GITHUB_ENV
105119
- name: Configure
106120
shell: bash
107121
run: |

0 commit comments

Comments
 (0)