File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 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 : |
You can’t perform that action at this time.
0 commit comments