mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00
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:
parent
90bc24291b
commit
6e971e912f
3
.github/workflows/build_linux.yml
vendored
3
.github/workflows/build_linux.yml
vendored
@ -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
|
||||
|
17
tools/ci.sh
17
tools/ci.sh
@ -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 #
|
||||
############################
|
||||
|
Loading…
Reference in New Issue
Block a user