mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-11-09 23:00:06 +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:
|
linux-sanitizers:
|
||||||
name: Linux GCC ASAN+UBSAN ${{ matrix.build_type }}
|
name: Linux GCC ASAN+UBSAN ${{ matrix.build_type }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 90
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -70,8 +71,10 @@ jobs:
|
|||||||
- name: Configure
|
- name: Configure
|
||||||
run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_ADDRESS_SANITIZER=ON -DENABLE_UNDEFINED_SANITIZER=ON
|
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
|
- name: Build
|
||||||
run: cmake --build build
|
run: cmake --build build -j 2
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: ctest --test-dir build --output-on-failure
|
run: ctest --test-dir build --output-on-failure
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user