diff --git a/.github/actions/librocksdb/action.yaml b/.github/actions/librocksdb/action.yaml index b22ee39cfcf..ef64fd3ee2d 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 cb63cf3b5d1..59622a7086b 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/ && \