aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2025-12-05 00:57:15 +0000
committerGitHub <noreply@github.com>2025-12-05 00:57:15 +0000
commit89f729dcca87425aadfa03d1764e96f285eb658d (patch)
tree2f41f1702c4137eba1786ab9fa8aae7a1ddd59e2
parentdfb08752004cdd8d919c61ac57aae8e8fc7025f6 (diff)
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
-rwxr-xr-x.github/workflows/scripts/qemu-4-build-vm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/scripts/qemu-4-build-vm.sh b/.github/workflows/scripts/qemu-4-build-vm.sh
index 2807d9e77127..38255cf39966 100755
--- a/.github/workflows/scripts/qemu-4-build-vm.sh
+++ b/.github/workflows/scripts/qemu-4-build-vm.sh
@@ -181,7 +181,7 @@ function freebsd() {
echo "##[endgroup]"
echo "##[group]Build"
- run gmake -j$(sysctl -n hw.ncpu)
+ run gmake -j$(nproc)
echo "##[endgroup]"
echo "##[group]Install"