From c7e617705f15cd68a5f73db538083825d6ea2a90 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 3 Feb 2024 13:22:47 -0500 Subject: [PATCH] user/gitlab-foss: attempt parallel bundle fix --- user/gitlab-foss/APKBUILD | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/user/gitlab-foss/APKBUILD b/user/gitlab-foss/APKBUILD index a41215a..aadd5b2 100644 --- a/user/gitlab-foss/APKBUILD +++ b/user/gitlab-foss/APKBUILD @@ -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