From 9a57f6f00b12a58432657e5da292ae8505a64173 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Wed, 6 Nov 2024 15:41:02 +0100 Subject: [PATCH] build: adjust -j flag --- .github/actions/librocksdb/action.yaml | 2 +- Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/librocksdb/action.yaml b/.github/actions/librocksdb/action.yaml index b22ee39cfc..ef64fd3ee2 100644 --- a/.github/actions/librocksdb/action.yaml +++ b/.github/actions/librocksdb/action.yaml @@ -41,7 +41,7 @@ runs: mkdir -p ${WORKDIR}/rocksdb cd ${WORKDIR}/rocksdb [[ -d .git ]] || git clone https://github.com/facebook/rocksdb.git -b v8.10.2 --depth 1 . - make -j4 static_lib + make -j$(nproc) static_lib make DESTDIR=/opt/rocksdb install-static set +x diff --git a/Dockerfile b/Dockerfile index cb63cf3b5d..59622a7086 100644 --- a/Dockerfile +++ b/Dockerfile @@ -153,7 +153,7 @@ FROM deps-${RUSTC_WRAPPER:-base} AS rocksdb RUN mkdir -p /tmp/rocksdb WORKDIR /tmp/rocksdb RUN git clone https://github.com/facebook/rocksdb.git -b v8.10.2 --depth 1 . && \ - make -j 4 static_lib && \ + make -j$(nproc) static_lib && \ mkdir -p /opt/rocksdb/usr/local/lib && \ cp librocksdb.a /opt/rocksdb/usr/local/lib/ && \ cp -r include /opt/rocksdb/usr/local/lib/ && \