From bdd77ee8e46972b8dcf79e01730e58d8be39f8e0 Mon Sep 17 00:00:00 2001 From: Alois Date: Mon, 5 Oct 2026 00:51:58 +0200 Subject: [PATCH] Bound release build concurrency on shared runner --- scripts/release-build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/release-build.sh b/scripts/release-build.sh index d65d1a2..2cd6328 100644 --- a/scripts/release-build.sh +++ b/scripts/release-build.sh @@ -8,6 +8,10 @@ out=$(realpath -m "${2:?Output directory required}") mkdir -p "$out" export TENSAMIN_CHANNEL=$channel ELECTRON_SKIP_BINARY_DOWNLOAD=1 export TENSAMIN_ANDROID_VERSION_CODE=${RELEASE_SEQUENCE:?Release sequence required} +# The runner shares memory with production services. Bound concurrent builds. +export NIX_CONFIG="${NIX_CONFIG:-} +max-jobs = 1 +cores = 2" system=${3:-$(nix eval --impure --raw --expr 'builtins.currentSystem')} expr="import $root/scripts/release-env.nix { root = builtins.toPath \"$root\"; kind = \"packages\"; channel = \"$channel\"; system = \"$system\"; }" nix build --impure --no-link --expr "import $root/scripts/release-env.nix { root = builtins.toPath \"$root\"; kind = \"checks\"; system = \"$system\"; }"