Added parallel matrix build option

This commit is contained in:
rilesdun 2021-12-23 14:52:55 -04:00
parent 3ec15a63a8
commit dbeacb4d1a

View file

@ -6,40 +6,28 @@ include:
- template: Secret-Detection.gitlab-ci.yml - template: Secret-Detection.gitlab-ci.yml
stages: stages:
- code-checkout
- build - build
- test - test
code-checkout:
stage: code-checkout
- rm -rf .git/modules/docs .git/modules/libraries/fc ./docs ./libraries/fc
- git submodule sync
- git submodule update --init --recursive
- rm -rf build
- mkdir build
- cd build
build: build:
stage: build stage: build
needs: [] needs: [code-checkout]
script: script:
- rm -rf .git/modules/docs .git/modules/libraries/fc ./docs ./libraries/fc
- git submodule sync
- git submodule update --init --recursive
- rm -rf build
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release .. - cmake -DCMAKE_BUILD_TYPE=Release ..
- make -j$(nproc) - make -j$(nproc)
artifacts: parallel:
untracked: true matrix:
paths:
- build/libraries/
- build/programs/
- build/tests/
tags:
- builder
build-testnet:
stage: build
needs: []
script:
- rm -rf .git/modules/docs .git/modules/libraries/fc ./docs ./libraries/fc
- git submodule sync
- git submodule update --init --recursive
- rm -rf build
- mkdir build
- cd build
- cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release -DBUILD_PEERPLAYS_TESTNET=1 .. - cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release -DBUILD_PEERPLAYS_TESTNET=1 ..
- make -j$(nproc) - make -j$(nproc)
artifacts: artifacts: