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:
Gerald Combs 2022-10-25 12:23:23 -07:00
parent 3a19d97867
commit 23f206c8b8
1 changed files with 2 additions and 0 deletions

View File

@ -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