Skip to content
Snippets Groups Projects
Commit 9d7576a5 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added system load limit to the CI config

parent 3745125e
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,8 @@ stages: ...@@ -26,7 +26,8 @@ stages:
.build_template_def: &build_template .build_template_def: &build_template
stage: build stage: build
script: script:
- export MAKEFLAGS=-j$(grep "core id" /proc/cpuinfo | wc -l) - export NUM_CORES=$(grep "core id" /proc/cpuinfo | wc -l)
- export MAKEFLAGS="-l$(echo 1.5*$NUM_CORES | bc) -j$NUM_CORES"
- mkdir -p "./builddir/$CI_JOB_NAME" - mkdir -p "./builddir/$CI_JOB_NAME"
- pushd "./builddir/$CI_JOB_NAME" - pushd "./builddir/$CI_JOB_NAME"
- cmake ../.. - cmake ../..
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment