Skip to content

Commit

Permalink
Increase build parallelism on macOS (#2759)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Hořeňovský <[email protected]>
  • Loading branch information
kkarbowiak and horenmar committed Nov 7, 2023
1 parent caffe79 commit b735dfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/mac-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`

0 comments on commit b735dfc

Please sign in to comment.