try to use as many cores as possible

0.6.3
Bret Curtis 7 years ago
parent 3f4d5598a5
commit 032768a505

@ -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…
Cancel
Save