Reduce build parallelism to prevent OOM in CI
Some checks failed
Build and Push / build-all (push) Failing after 7m28s

This commit is contained in:
doomtube 2026-01-06 02:02:13 -05:00
parent 1341b3dd0a
commit 3b78fb4ebd

View file

@ -77,11 +77,12 @@ RUN rm -rf build CMakeCache.txt
RUN mkdir -p build RUN mkdir -p build
# Build the application with RPATH set correctly # Build the application with RPATH set correctly
# Use -j2 to limit memory usage (OOM with -j$(nproc) on constrained CI runners)
RUN cd build && \ RUN cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release \ cmake .. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_RPATH="/usr/local/lib" \ -DCMAKE_INSTALL_RPATH="/usr/local/lib" \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE && \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE && \
cmake --build . -j$(nproc) cmake --build . -j2
# Copy config template (real config mounted at runtime via docker-compose) # Copy config template (real config mounted at runtime via docker-compose)
COPY config.json.example config.json COPY config.json.example config.json