From 1dcdb7536f79f28227dac82383b57fed9d2e91f8 Mon Sep 17 00:00:00 2001 From: Krzysiek Karbowiak Date: Tue, 7 Nov 2023 11:49:58 +0100 Subject: [PATCH 1/2] Increase build parallelism on macOS --- .github/workflows/mac-builds.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mac-builds.yml b/.github/workflows/mac-builds.yml index 955b81fcc6..eb95adab3c 100644 --- a/.github/workflows/mac-builds.yml +++ b/.github/workflows/mac-builds.yml @@ -42,11 +42,11 @@ jobs: - name: Build tests + lib working-directory: ${{runner.workspace}}/build - run: make -j 2 + run: make -j 3 - name: Run tests env: CTEST_OUTPUT_ON_FAILURE: 1 working-directory: ${{runner.workspace}}/build - # Hardcode 2 cores we know are there - run: ctest -C ${{matrix.build_type}} -j 2 + # Hardcode 3 cores we know are there + run: ctest -C ${{matrix.build_type}} -j 3 From ca1e2be69c5e6658d520a6dfa97d17dc0abcdd5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Tue, 7 Nov 2023 15:09:46 +0100 Subject: [PATCH 2/2] Apply suggestions from code review --- .github/workflows/mac-builds.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mac-builds.yml b/.github/workflows/mac-builds.yml index eb95adab3c..5fc79c6919 100644 --- a/.github/workflows/mac-builds.yml +++ b/.github/workflows/mac-builds.yml @@ -42,11 +42,10 @@ jobs: - name: Build tests + lib working-directory: ${{runner.workspace}}/build - run: make -j 3 + run: make -j `sysctl -n hw.ncpu` - name: Run tests env: CTEST_OUTPUT_ON_FAILURE: 1 working-directory: ${{runner.workspace}}/build - # Hardcode 3 cores we know are there - run: ctest -C ${{matrix.build_type}} -j 3 + run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`