Increase build parallelism on macOS (#2759)

Co-authored-by: Martin Hořeňovský <martin.horenovsky@gmail.com>
This commit is contained in:
Krzysiek Karbowiak 2023-11-07 22:17:47 +01:00 committed by GitHub
parent caffe79a31
commit b735dfce2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,11 +42,10 @@ jobs:
- name: Build tests + lib - name: Build tests + lib
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: make -j 2 run: make -j `sysctl -n hw.ncpu`
- name: Run tests - name: Run tests
env: env:
CTEST_OUTPUT_ON_FAILURE: 1 CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
# Hardcode 2 cores we know are there run: ctest -C ${{matrix.build_type}} -j `sysctl -n hw.ncpu`
run: ctest -C ${{matrix.build_type}} -j 2