Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKrzysiek Karbowiak2023-11-07 22:17:47 +0100
committerGitHub2023-11-07 22:17:47 +0100
commitb735dfce2d604db256c155b13db8ab258a88c0ba (patch)
treec8c48c15c0e2d0df63610780ba8b42d1c25212a7
parentcaffe79a3172495f6a4b09de88e81e9aa67b8323 (diff)
downloadcatch3-b735dfce2d604db256c155b13db8ab258a88c0ba.tar.gz
Increase build parallelism on macOS (#2759)
Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
-rw-r--r--.github/workflows/mac-builds.yml5
1 files changed, 2 insertions, 3 deletions
diff --git a/.github/workflows/mac-builds.yml b/.github/workflows/mac-builds.yml
index 955b81fc..5fc79c69 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 2
+ run: make -j `sysctl -n hw.ncpu`
- 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
+ run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`