From de8eaf6468c0be589432e9d3256bc0081b1da5a8 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 16 May 2022 21:29:34 +0900 Subject: [PATCH] Parallel build --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fe85fc5..3aea9a33 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -166,14 +166,14 @@ jobs: - name: Build nghttp2 with autotools if: matrix.buildtool == 'autotools' run: | - make distcheck \ + make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" distcheck \ DISTCHECK_CONFIGURE_FLAGS="--with-mruby --with-neverbleed --with-libev --enable-werror $EXTRA_AUTOTOOLS_OPTS CPPFLAGS=\"$CPPFLAGS\" LDFLAGS=\"$LDFLAGS\"" - name: Build nghttp2 with cmake if: matrix.buildtool == 'cmake' run: | cd $NGHTTP2_CMAKE_DIR - make - make check + make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" + make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)" check - name: Integration test # Integration tests for nghttpx; autotools erases build # artifacts.