feat(ci): Build amalgamation in the CI with multithreading enabled

Prevent regression to the recent build fix.

Co-authored-by: kimim <kimi.im@outlook.com>
This commit is contained in:
Julius Pfrommer 2021-11-04 10:18:16 +01:00 committed by Julius Pfrommer
parent 90bc24291b
commit 6e971e912f
2 changed files with 20 additions and 0 deletions

View File

@ -73,6 +73,9 @@ jobs:
- build_name: Amalgamation Build
cmd_deps: ""
cmd_action: build_amalgamation
- build_name: Amalgamation Build with Multithreading
cmd_deps: ""
cmd_action: build_amalgamation_mt
- build_name: "Valgrind Build & Unit Tests with MbedTLS (gcc)"
cmd_deps: sudo apt-get install -y -qq valgrind libmbedtls-dev
cmd_action: unit_tests_valgrind MBEDTLS

View File

@ -99,6 +99,23 @@ function build_amalgamation {
make ${MAKEOPTS}
}
function build_amalgamation_mt {
mkdir -p build; cd build; rm -rf *
cmake -DCMAKE_BUILD_TYPE=Debug \
-DUA_ENABLE_AMALGAMATION=ON \
-DUA_ENABLE_DISCOVERY=ON \
-DUA_ENABLE_SUBSCRIPTIONS_EVENTS=ON \
-DUA_ENABLE_JSON_ENCODING=ON \
-DUA_ENABLE_PUBSUB=ON \
-DUA_ENABLE_PUBSUB_ETH_UADP=ON \
-DUA_ENABLE_PUBSUB_DELTAFRAMES=ON \
-DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON \
-DUA_ENABLE_PUBSUB_MONITORING=ON \
-DUA_MULTITHREADING=100 \
..
make ${MAKEOPTS}
}
############################
# Build and Run Unit Tests #
############################