From 3f864cce9736cc8e9312835465fae18428d76295 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 31 May 2022 10:40:28 +0300 Subject: ci: Use sysctl instead of nproc on macOS There's no nproc command on macOS. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5508ba8..213ea6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 -- cgit v1.2.3