fix: limit CARGO_BUILD_JOBS=2 to reduce OOM during parallel matrix builds

This commit is contained in:
Ashwin Kumar 2026-04-09 05:55:50 +02:00
parent 329f650079
commit 085b3169f6
18 changed files with 18 additions and 0 deletions

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin catering_services
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin companies
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin cron
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin customers
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin developers
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin employees
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin fitness_trainers
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin gateway
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin graphic_designers
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin job_seekers
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin makeup_artists
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin payments
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin photographers
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin social_media_managers
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin tutors
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin ugc_content_creators
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin users
FROM debian:bookworm-slim AS runtime

View file

@ -12,6 +12,7 @@ COPY crates ./crates
COPY apps ./apps
ENV SQLX_OFFLINE=true
ENV CARGO_BUILD_JOBS=2
RUN cargo build --release --bin video_editors
FROM debian:bookworm-slim AS runtime