git: 5bba547a678b - main - Cirrus-CI: Use nproc instead of sysctl -n hw.ncpu
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Oct 2025 15:25:49 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=5bba547a678beb280bf4080375f45b04ceb44fc5
commit 5bba547a678beb280bf4080375f45b04ceb44fc5
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2025-10-02 14:37:19 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2025-10-02 15:19:44 +0000
Cirrus-CI: Use nproc instead of sysctl -n hw.ncpu
It is available on all supproted FreeBSD versions.
Sponsored by: The FreeBSD Foundation
---
.cirrus.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.cirrus.yml b/.cirrus.yml
index 84efa04f1ccb..4e7fd0616949 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -154,10 +154,10 @@ task:
- su user -c "git config --global --add safe.directory $(pwd -P)"
build_world_script:
- - su user -c "make -j$(sysctl -n hw.ncpu) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"
+ - su user -c "make -j$(nproc) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"
build_kernel_script:
- - su user -c "make -j$(sysctl -n hw.ncpu) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildkernel"
+ - su user -c "make -j$(nproc) CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildkernel"
package_script:
- su user -c "make CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes packages"