From db047b89d7f413c5c580ceaae43780448614eda2 Mon Sep 17 00:00:00 2001 From: frstrtr Date: Thu, 16 Jul 2026 13:49:08 +0000 Subject: [PATCH] ci(release): cap btc/dgb Windows compile to -j 8 (VM217 pagefile-wall fix) VM217 has a fixed 2GB pagefile. A 16-way MSVC parallel build of the heavy btc+NMC (and dgb+DOGE) translation-unit set drives commit charge past the 32GB+2GB wall; the allocation failure surfaces as an orphaned MSBuild with no C####/LNK diagnostic. Cap cmake -j (-> MSBuild /maxcpucount on the VS generator) to 8 to bound concurrent cl.exe and keep committed memory under the wall. Per-coin source-presence guard left intact. --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 85414efe6..1f8cad350 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -543,7 +543,13 @@ jobs: - name: Build c2pool-${{ matrix.coin }} if: steps.presence.outputs.exists == '1' shell: cmd - run: cmake --build build_ci --target c2pool-${{ matrix.coin }} --config Release -j %NUMBER_OF_PROCESSORS% + # VM217 has a fixed 2GB pagefile; a 16-way MSVC parallel build of the + # heavy btc+NMC (and dgb+DOGE) TU set drives commit charge past the + # 32GB+2GB wall. The failure surfaces as an orphaned MSBuild with NO + # C####/LNK diagnostic. Cap MSBuild /maxcpucount (cmake -j -> /maxcpucount + # on the VS generator) to bound concurrent cl.exe and keep committed + # memory under the wall. Conservative 8; tune up only if headroom allows. + run: cmake --build build_ci --target c2pool-${{ matrix.coin }} --config Release -j 8 - name: Smoke test (--help) if: steps.presence.outputs.exists == '1'