mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-31 21:45:35 +00:00
try to use as many cores as possible
This commit is contained in:
parent
3f4d5598a5
commit
032768a505
1 changed files with 2 additions and 2 deletions
|
@ -23,9 +23,9 @@ before_script:
|
|||
build:
|
||||
stage: build
|
||||
script:
|
||||
- nproc
|
||||
- cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi
|
||||
- mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../
|
||||
- make -j2
|
||||
- make -j$cores_to_use
|
||||
- DESTDIR=artifacts make install
|
||||
artifacts:
|
||||
paths:
|
||||
|
|
Loading…
Reference in a new issue