From 4a563268bde90c2e1178024524c57aed7a457a85 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Tue, 31 May 2022 10:40:28 +0300 Subject: [PATCH] ci: Use sysctl instead of nproc on macOS --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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