From 28ebe8ba6c386eb525d1bf57efb1e9f42b4b2e67 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 30 Jul 2024 17:36:01 -0700 Subject: [PATCH] update(ci): Build more jobs in parallel Pass `--parallel` to `cmake --build`. This requires CMake 3.12, but that shouldn't be a problem on the affected runners. Signed-off-by: Gerald Combs --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c999a13e7..1657dfb90d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -148,7 +148,7 @@ jobs: run: | mkdir -p build cd build && cmake -DUSE_BUNDLED_DEPS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_MSVC_RUNTIME_LIBRARY=${{ matrix.crt }} -DCREATE_TEST_TARGETS=ON -DMINIMAL_BUILD=ON .. - cmake --build . --config Release && make run-unit-tests || libsinsp\test\Release\unit-test-libsinsp.exe + cmake --build . --config Release --parallel 4 && make run-unit-tests || libsinsp\test\Release\unit-test-libsinsp.exe build-shared-libs-macos-amd64: name: build-shared-libs-macos-amd64 😨 @@ -169,7 +169,7 @@ jobs: run: | mkdir -p build cd build && cmake -DBUILD_SHARED_LIBS=True -DUSE_BUNDLED_DEPS=False -DUSE_BUNDLED_VALIJSON=ON -DCMAKE_BUILD_TYPE=Release -DCREATE_TEST_TARGETS=OFF -DMINIMAL_BUILD=ON -DCMAKE_INSTALL_PREFIX=/tmp/libs-test .. - cmake --build . --config Release + cmake --build . --config Release --parallel $(getconf _NPROCESSORS_ONLN) - name: Install run: |