From 6c4f43beb72da80c3f98d2e3326b8a1e6ab1a6c6 Mon Sep 17 00:00:00 2001 From: Scott Scoble Date: Wed, 29 Apr 2026 00:43:32 -0700 Subject: [PATCH] Limit Nix build parallelism to reduce memory usage --- .forgejo/workflows/deploy.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index d66802a..1c3b06d 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -10,6 +10,8 @@ jobs: runs-on: nixos env: PATH: /run/current-system/sw/bin + NIX_BUILD_CORES: 1 + NIX_MAX_JOBS: 1 steps: - name: Clone repo run: | @@ -20,11 +22,11 @@ jobs: echo "WORKDIR=$WORKDIR" >> $GITHUB_ENV - name: Build website with Nix - run: nix build .#website --no-write-lock-file + run: nix build .#website --no-write-lock-file --cores 1 --max-jobs 1 working-directory: ${{ env.WORKDIR }} - name: Build speaker profile PDF - run: nix build .#speaker-profile --no-write-lock-file + run: nix build .#speaker-profile --no-write-lock-file --cores 1 --max-jobs 1 working-directory: ${{ env.WORKDIR }} - name: Copy build artifacts