user/gitlab-foss: attempt parallel bundle fix
This commit is contained in:
parent
7b760382bb
commit
c7e617705f
1 changed files with 3 additions and 2 deletions
|
@ -87,8 +87,7 @@ _prefix="usr/lib/bundles/$_pkgname"
|
|||
export BUNDLE_DEPLOYMENT=true
|
||||
export BUNDLE_FORCE_RUBY_PLATFORM=true
|
||||
export BUNDLE_FROZEN=true
|
||||
# Should be tied to $JOBS, but rust native code fails to build
|
||||
export BUNDLE_JOBS=1
|
||||
export BUNDLE_JOBS=${JOBS:-2}
|
||||
|
||||
prepare() {
|
||||
local sysgemdir=$(ruby -e 'puts Gem.default_dir')
|
||||
|
@ -141,6 +140,8 @@ build() {
|
|||
bundle config --local build.ruby-magic --enable-system-libraries
|
||||
bundle config --local build.google-protobuf '-- --with-cflags=-D__va_copy=va_copy'
|
||||
bundle config --local path "vendor/bundle"
|
||||
bundle config --local build.prometheus-client-mmap -j 16
|
||||
bundle config --local build.gitlab-glfm-markdown -j 16
|
||||
|
||||
bundle install --no-cache
|
||||
|
||||
|
|
Loading…
Reference in a new issue