From 664a33ae63b15a76f254c5ec32a621adef4a09d5 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Wed, 12 Aug 2026 11:15:03 -0400 Subject: [PATCH] Limit sanitizer build jobs to avoid OOM --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6cb446b3..0adcd73e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,7 @@ jobs: linux-sanitizers: name: Linux GCC ASAN+UBSAN ${{ matrix.build_type }} runs-on: ubuntu-latest + timeout-minutes: 90 strategy: fail-fast: false matrix: @@ -70,8 +71,10 @@ jobs: - name: Configure run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_ADDRESS_SANITIZER=ON -DENABLE_UNDEFINED_SANITIZER=ON + # Sanitized Release builds need several GB of RAM per translation unit, + # which OOMs the runner at full parallelism. - name: Build - run: cmake --build build + run: cmake --build build -j 2 - name: Test run: ctest --test-dir build --output-on-failure