mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 09:28:21 +00:00
CI: set up multi-thread build for all platforms
This commit is contained in:
parent
f4c95f6dd9
commit
024741b476
4
.github/workflows/linux.yml
vendored
4
.github/workflows/linux.yml
vendored
@ -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
|
||||||
|
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
@ -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
|
||||||
|
4
.github/workflows/windows.yml
vendored
4
.github/workflows/windows.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user