From 23f206c8b8887bd11b121b28d54e749b69febbe9 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 25 Oct 2022 12:23:23 -0700 Subject: [PATCH] GitLab CI: Build RPMs in parallel. Our RPM spec runs `cmake --build ... -j1` on Fedora and Rocky. Set RPM_BUILD_NCPUS, which increases the `-j` value so that ninja can make full use of the system. [skip ci] --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c6e9c7fd6..8e81e4b7c5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -135,6 +135,8 @@ variables: extends: .build-linux rules: !reference [.if-2x-daily-schedule] before_script: + # Hack to let ninja make full use of the system on Fedora and Rocky. + - export RPM_BUILD_NCPUS=$(( $( getconf _NPROCESSORS_ONLN ) + 2 )) - git config --global user.email "you@example.com" - git config --global user.name "Your Name" - mkdir build