Reduce build parallelism to prevent OOM in CI
Some checks failed
Build and Push / build-all (push) Failing after 7m28s
Some checks failed
Build and Push / build-all (push) Failing after 7m28s
This commit is contained in:
parent
1341b3dd0a
commit
3b78fb4ebd
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue