mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-10-28 18:07:39 +08:00
Limit sanitizer build jobs to avoid OOM
This commit is contained in:
parent
caed2c2948
commit
664a33ae63
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user