ci: limit CGAL build to -j2 and nice -n 19 to protect Pi web server
-j$(nproc) during CGAL+Eigen template compilation consumed ~1.5-2 GB peak RAM on the Raspberry Pi CI runner, starving the Gitea web server. Changes: - CGAL build: -j$(nproc) → -j2 (halves peak memory, ~700 MB per process) - Both builds: nice -n 19 (lowest CPU priority, web server keeps preemption) - test-cgal container: hard memory cap --memory=1400m --memory-swap=1400m so the container is OOM-killed rather than taking down the whole system Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -27,7 +27,7 @@ jobs:
|
|||||||
run: cmake -S code -B build -DCMAKE_BUILD_TYPE=Release
|
run: cmake -S code -B build -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cmake --build build --target conformallab_tests -j$(nproc)
|
run: nice -n 19 cmake --build build --target conformallab_tests -j$(nproc)
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: >
|
run: >
|
||||||
@@ -66,6 +66,7 @@ jobs:
|
|||||||
runs-on: eulernest
|
runs-on: eulernest
|
||||||
container:
|
container:
|
||||||
image: git.eulernest.eu/conformallab/ci-cpp:latest
|
image: git.eulernest.eu/conformallab/ci-cpp:latest
|
||||||
|
options: "--memory=1400m --memory-swap=1400m"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -74,7 +75,7 @@ jobs:
|
|||||||
run: cmake -S code -B build -DWITH_CGAL_TESTS=ON -DCMAKE_BUILD_TYPE=Release
|
run: cmake -S code -B build -DWITH_CGAL_TESTS=ON -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
- name: Build CGAL-Tests
|
- name: Build CGAL-Tests
|
||||||
run: cmake --build build --target conformallab_cgal_tests -j$(nproc)
|
run: nice -n 19 cmake --build build --target conformallab_cgal_tests -j2
|
||||||
|
|
||||||
- name: Run CGAL-Tests
|
- name: Run CGAL-Tests
|
||||||
run: >
|
run: >
|
||||||
|
|||||||
Reference in New Issue
Block a user