Commit 024741b4 authored by Alexey Ochapov's avatar Alexey Ochapov Committed by Victor Zverovich

CI: set up multi-thread build for all platforms

parent f4c95f6d
...@@ -67,7 +67,9 @@ jobs: ...@@ -67,7 +67,9 @@ jobs:
- name: Build - name: Build
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}} run: |
threads=`nproc`
cmake --build . --config ${{matrix.build_type}} --parallel $threads
- name: Test - name: Test
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
......
...@@ -26,7 +26,9 @@ jobs: ...@@ -26,7 +26,9 @@ jobs:
- name: Build - name: Build
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}} run: |
threads=`sysctl -n hw.logicalcpu`
cmake --build . --config ${{matrix.build_type}} --parallel $threads
- name: Test - name: Test
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
......
...@@ -49,7 +49,9 @@ jobs: ...@@ -49,7 +49,9 @@ jobs:
- name: Build - name: Build
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
run: cmake --build . --config ${{matrix.build_type}} run: |
$threads = (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
cmake --build . --config ${{matrix.build_type}} --parallel $threads
- name: Test - name: Test
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment