Skip to content

Commit b735dfc

Browse files
kkarbowiakhorenmar
andauthored
Increase build parallelism on macOS (#2759)
Co-authored-by: Martin Hořeňovský <[email protected]>
1 parent caffe79 commit b735dfc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/mac-builds.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,10 @@ jobs:
4242
4343
- name: Build tests + lib
4444
working-directory: ${{runner.workspace}}/build
45-
run: make -j 2
45+
run: make -j `sysctl -n hw.ncpu`
4646

4747
- name: Run tests
4848
env:
4949
CTEST_OUTPUT_ON_FAILURE: 1
5050
working-directory: ${{runner.workspace}}/build
51-
# Hardcode 2 cores we know are there
52-
run: ctest -C ${{matrix.build_type}} -j 2
51+
run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`

0 commit comments

Comments
 (0)