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]
This commit is contained in:
parent
3a19d97867
commit
23f206c8b8
|
@ -135,6 +135,8 @@ variables:
|
||||||
extends: .build-linux
|
extends: .build-linux
|
||||||
rules: !reference [.if-2x-daily-schedule]
|
rules: !reference [.if-2x-daily-schedule]
|
||||||
before_script:
|
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.email "you@example.com"
|
||||||
- git config --global user.name "Your Name"
|
- git config --global user.name "Your Name"
|
||||||
- mkdir build
|
- mkdir build
|
||||||
|
|
Loading…
Reference in New Issue