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
This commit is contained in:
Emanuele Torre authored and GitHub committed 2023-12-11 22:02:42 +01:00
1 parent 527c5abab1
commit 19453a60cf
1 file changed
+1 -1
+1 -1
View File
@@ -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 }}