Skip to content

Commit

Permalink
gitlab-ci.yml: Reduce number of threads used for the build
Browse files Browse the repository at this point in the history
We've seen some intermittent build issues on some of our build servers.
Reducing the number of build threads may help mitigate this issue, at the
obvious expense of slowing down builds.

Signed-off-by: Chris Paterson <[email protected]>
  • Loading branch information
patersonc committed Jul 28, 2022
1 parent e2034fa commit 5d064f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ variables:
before_script:
- printenv
- rm -rf ${OUTPUT_DIR} ${PROP_LIBS_DIR} ${BUILD_DIR}
- export BUILD_THREADS=$(($(nproc)/2))
script:
- mkdir -p ${OUTPUT_DIR} ${PROP_LIBS_DIR} ${BUILD_DIR}
- git clone [email protected]:spl2/continuous-integration/proprietary-libs.git ${PROP_LIBS_DIR}
- pushd ${PROP_LIBS_DIR} && git checkout ${PROP_LIBS_BRANCH} && popd
- pushd ${BUILD_DIR}
- ${CI_PROJECT_DIR}/scripts/build-rzg-ai-bsp.sh -p ${PLATFORM} -l ${PROP_LIBS_DIR} -f ${FRAMEWORK} -o ${OUTPUT_DIR} -e -s -j ${DL_DIR} -k ${SSTATE_DIR} ${EXTRA_BUILD_ARGS}
- ${CI_PROJECT_DIR}/scripts/build-rzg-ai-bsp.sh -p ${PLATFORM} -l ${PROP_LIBS_DIR} -f ${FRAMEWORK} -n ${BUILD_THREADS} -o ${OUTPUT_DIR} -e -s -j ${DL_DIR} -k ${SSTATE_DIR} ${EXTRA_BUILD_ARGS}
after_script:
- echo "BUILD_JOB_ID=$CI_JOB_ID" >> job.env
cache:
Expand Down

0 comments on commit 5d064f9

Please sign in to comment.