Skip to content

Commit

Permalink
build: adjust -j flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Nov 6, 2024
1 parent 49ee181 commit 9a57f6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/librocksdb/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/ && \
Expand Down

0 comments on commit 9a57f6f

Please sign in to comment.