Skip to content

Commit 89f729d

Browse files
authored
During CI, use nproc instead of sysctl -n hw.ncpu
The latter may give the wrong result if cpusets are in use. Sponsored by: ConnectWise Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Alan Somers <asomers@gmail.com> Closes #18012
1 parent dfb0875 commit 89f729d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/qemu-4-build-vm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ function freebsd() {
181181
echo "##[endgroup]"
182182

183183
echo "##[group]Build"
184-
run gmake -j$(sysctl -n hw.ncpu)
184+
run gmake -j$(nproc)
185185
echo "##[endgroup]"
186186

187187
echo "##[group]Install"

0 commit comments

Comments
 (0)