diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 369dcf8a..e75502b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,7 +19,7 @@ build: - mkdir build - cd build - cmake -DCMAKE_BUILD_TYPE=Release .. - - make -j4 + - make -j$(nproc) artifacts: untracked: true paths: diff --git a/README.md b/README.md index 3c5113fc..63b22746 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,18 @@ cd $HOME/src git clone https://gitlab.com/PBSA/peerplays.git cd peerplays git submodule update --init --recursive + # If you want to build Mainnet node cmake -DCMAKE_BUILD_TYPE=Release + # If you want to build Testnet node cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_PEERPLAYS_TESTNET=1 + +# Update -j flag depending on your current system specs; +# Recommended 4GB of RAM per 1 CPU core +# make -j2 for 8GB RAM +# make -j4 for 16GB RAM +# make -j8 for 32GB RAM make -j$(nproc) make install # this can install the executable files under /usr/local