1
0
Fork 0
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:
Bret Curtis 2018-06-13 12:38:03 +00:00
parent 3f4d5598a5
commit 032768a505

View file

@ -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: