From 19453a60cff5862c87a0f178f1ee60eff86e3d70 Mon Sep 17 00:00:00 2001 From: Emanuele Torre Date: Mon, 11 Dec 2023 22:02:42 +0100 Subject: ci.yml: use sysctl -n hw.logicalcpu instead of nproc on macos The "macos (arm64)" runner on github does not have nproc. /Users/runner/work/_temp/f44f0d9f-19eb-4a23-860e-26533d7efdfa.sh: line 10: nproc: command not found --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ce6a2b0..7d348b03 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,7 +160,7 @@ jobs: --enable-static \ --enable-all-static \ CFLAGS="-O2 -pthread -fstack-protector-all" - make -j"$(nproc)" + make -j"$(sysctl -n hw.logicalcpu)" strip ./jq file ./jq cp ./jq jq-${{ env.SUFFIX }} -- cgit v1.2.3