[build] Use all available cores for macOS CI builds

This commit is contained in:
Juha Alanen
2020-02-12 12:45:04 +02:00
parent 7a9f8027ac
commit 8f8eb46c7c

View File

@@ -237,7 +237,7 @@ commands:
name: Build
command: |
ccache --zero-stats --max-size=2G
cmake --build build -j $(nproc) << parameters.build_params >>
cmake --build build -j $(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null) << parameters.build_params >>
ccache --show-stats
install:
steps: