mirror of
https://github.com/Brodino96/webkit2gtk-automator.git
synced 2026-05-05 22:29:57 +02:00
feat: added control for multiple cores
This commit is contained in:
@@ -18,3 +18,7 @@ AUR_MAINTAINER_EMAIL=your@email.com
|
||||
|
||||
# How often to poll the AUR for updates, in seconds (default: 3600 = 1 hour)
|
||||
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
|
||||
|
||||
@@ -8,6 +8,9 @@ services:
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .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:
|
||||
# Entire project mounted so the container can read/write state, artifacts,
|
||||
# and the webkit2gtk / webkit2gtk-bin git repos.
|
||||
|
||||
@@ -31,6 +31,11 @@ find . -maxdepth 1 -name '*.pkg.tar.zst' -delete
|
||||
find . -maxdepth 1 -name '*.pkg.tar.zst.sig' -delete
|
||||
|
||||
# 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}"
|
||||
# --syncdeps : install missing makedepends automatically
|
||||
# --noconfirm : do not ask for confirmations
|
||||
|
||||
Reference in New Issue
Block a user