Use single-threaded build to prevent OOM
Some checks failed
Build and Push / build-all (push) Failing after 6m47s
Some checks failed
Build and Push / build-all (push) Failing after 6m47s
This commit is contained in:
parent
3b78fb4ebd
commit
a1c7d49e00
1 changed files with 2 additions and 2 deletions
|
|
@ -77,12 +77,12 @@ RUN rm -rf build CMakeCache.txt
|
|||
RUN mkdir -p build
|
||||
|
||||
# Build the application with RPATH set correctly
|
||||
# Use -j2 to limit memory usage (OOM with -j$(nproc) on constrained CI runners)
|
||||
# Use -j1 to limit memory usage (OOM with parallel builds in constrained CI runners)
|
||||
RUN cd build && \
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_RPATH="/usr/local/lib" \
|
||||
-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE && \
|
||||
cmake --build . -j2
|
||||
cmake --build . -j1
|
||||
|
||||
# Copy config template (real config mounted at runtime via docker-compose)
|
||||
COPY config.json.example config.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue