feat: added control for multiple cores

This commit is contained in:
2026-04-27 00:53:54 +02:00
parent 0cd1e933f8
commit 54a3c90079
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -18,3 +18,7 @@ AUR_MAINTAINER_EMAIL=your@email.com
# How often to poll the AUR for updates, in seconds (default: 3600 = 1 hour) # How often to poll the AUR for updates, in seconds (default: 3600 = 1 hour)
POLL_INTERVAL_SECONDS=3600 POLL_INTERVAL_SECONDS=3600
# Number of CPU cores to use for compilation (default: all available cores)
# Reduce this if you want to leave headroom for other processes on the server
# NPROC=4
+3
View File
@@ -8,6 +8,9 @@ services:
restart: unless-stopped restart: unless-stopped
env_file: env_file:
- .env - .env
# By default Docker exposes all host CPUs to the container.
# You can cap it here or set NPROC in .env to limit parallelism at the build level.
# cpus: '4'
volumes: volumes:
# Entire project mounted so the container can read/write state, artifacts, # Entire project mounted so the container can read/write state, artifacts,
# and the webkit2gtk / webkit2gtk-bin git repos. # and the webkit2gtk / webkit2gtk-bin git repos.
+5
View File
@@ -31,6 +31,11 @@ find . -maxdepth 1 -name '*.pkg.tar.zst' -delete
find . -maxdepth 1 -name '*.pkg.tar.zst.sig' -delete find . -maxdepth 1 -name '*.pkg.tar.zst.sig' -delete
# Build # Build
# Use all available cores. MAKEFLAGS is respected by makepkg and passed
# through to cmake/ninja. NPROC can be overridden via the environment.
nproc="${NPROC:-$(nproc)}"
export MAKEFLAGS="-j${nproc}"
log "Building with ${nproc} cores"
log "Running makepkg in ${SRC_DIR}" log "Running makepkg in ${SRC_DIR}"
# --syncdeps : install missing makedepends automatically # --syncdeps : install missing makedepends automatically
# --noconfirm : do not ask for confirmations # --noconfirm : do not ask for confirmations