From 267ce93a7edc3eb0137cd96cb5a5a7d092cd6df4 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 15 May 2022 17:36:53 +0900 Subject: [PATCH] nproc is not available on macos --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a50d43f..6fe85fc5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -100,7 +100,7 @@ jobs: git clone --depth 1 -b OpenSSL_1_1_1o+quic https://github.com/quictls/openssl cd openssl ./config --prefix=$PWD/build - make -j$(nproc) + make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" make install_sw - name: Build quictls/openssl v3.0.x if: matrix.http3 == 'http3' && matrix.openssl == 'openssl3' @@ -111,7 +111,7 @@ jobs: git clone --depth 1 -b openssl-3.0.3+quic https://github.com/quictls/openssl cd openssl ./config enable-ktls --prefix=$PWD/build --libdir=$PWD/build/lib - make -j$(nproc) + make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" make install_sw - name: Build nghttp3 if: matrix.http3 == 'http3' @@ -120,7 +120,7 @@ jobs: cd nghttp3 autoreconf -i ./configure --prefix=$PWD/build --enable-lib-only - make -j$(nproc) check + make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" check make install - name: Build ngtcp2 if: matrix.http3 == 'http3' @@ -129,7 +129,7 @@ jobs: cd ngtcp2 autoreconf -i ./configure --prefix=$PWD/build --enable-lib-only PKG_CONFIG_PATH="../openssl/build/lib/pkgconfig" - make -j$(nproc) check + make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" check make install - name: Setup extra environment variables for HTTP/3 if: matrix.http3 == 'http3'