ci: Use sysctl instead of nproc on macOS

There's no nproc command on macOS.
This commit is contained in:
Martin Storsjo 2022-05-31 10:40:28 +03:00
parent 072f2cdafd
commit 3f864cce97
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ jobs:
run: |
./autogen.sh
./configure --enable-example
make -j$(nproc) CFLAGS="-g -O2 -Werror" CXXFLAGS="-g -O2 -Werror"
make -j$(sysctl -n hw.ncpu) CFLAGS="-g -O2 -Werror" CXXFLAGS="-g -O2 -Werror"
macos-cmake:
runs-on: macos-latest