diff options
author | Emanuele Torre <torreemanuele6@gmail.com> | 2023-12-11 22:02:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 22:02:42 +0100 |
commit | 19453a60cff5862c87a0f178f1ee60eff86e3d70 (patch) | |
tree | a2db9854a1d855dcfb6af770f0bd9893d45172e5 /.github | |
parent | 527c5abab17c1f8f717e00c3938e0361b4f33ae6 (diff) |
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
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |