During CI, use nproc instead of sysctl -n hw.ncpu
Some checks failed
checkstyle / checkstyle (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
smatch / smatch (push) Has been cancelled
zfs-qemu / Setup (push) Has been cancelled
zloop / zloop (push) Has been cancelled
zfs-qemu / qemu-x86 (push) Has been cancelled
zfs-qemu / Cleanup (push) Has been cancelled

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
This commit is contained in:
Alan Somers 2025-12-04 17:57:15 -07:00 committed by GitHub
parent dfb0875200
commit 89f729dcca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -181,7 +181,7 @@ function freebsd() {
echo "##[endgroup]" echo "##[endgroup]"
echo "##[group]Build" echo "##[group]Build"
run gmake -j$(sysctl -n hw.ncpu) run gmake -j$(nproc)
echo "##[endgroup]" echo "##[endgroup]"
echo "##[group]Install" echo "##[group]Install"