Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/ci-downstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI Downstream - MQTT Streaming

on:
workflow_dispatch:
inputs:
opendaq-ref:
description: "openDAQ SDK commit, branch or tag"
required: false
default: ""
pull_request:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the pull_request trigger before merge


jobs:
call-opendaq-reusable:
name: MQTT Streaming
uses: openDAQ/openDAQ-CI/.github/workflows/reusable.yml@jira/TBBAS-3031-reusable-ci
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change after reusable.yml is merged into main

with:
opendaq-ref: ${{ github.event.inputs.opendaq-ref || '' }}
packages: >
[
{
"match-jobs": ["ubuntu-*"],
"apt-install": ["mosquitto"],
"run": "mosquitto -d"
},
{
"match-jobs": ["windows-*"],
"winget-install": ["EclipseFoundation.Mosquitto"]
},
{
"match-jobs": ["macos-*"],
"brew-install": ["mosquitto"],
"run": "$(brew --prefix mosquitto)/sbin/mosquitto -d"
}
]
cmake-presets: >
[
{
"configure-preset": "module",
"test-preset": "module-test"
}
]
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ option(${REPO_OPTION_PREFIX}_ENABLE_SSL "Enable building with openSSL" OFF)
opendaq_common_compile_targets_settings()
opendaq_setup_compiler_flags(${REPO_OPTION_PREFIX})

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10)
add_compile_options(-Wno-unknown-warning-option)
endif()

if (${REPO_OPTION_PREFIX}_ENABLE_TESTS)
message(STATUS "Unit tests in ${REPO_NAME} are ENABLED")
enable_testing()
Expand Down
14 changes: 14 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,20 @@
"clang",
"ninja"
]
},
{
"name": "module",
"hidden": true,
"cacheVariables": {
"DAQMODULES_MQTT_ENABLE_TESTS": "ON"
}
}
],
"testPresets": [
{
"name": "module-test",
"hidden": true,
"configurePreset": "module"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class MqttPublisherFbHelper : public DaqTestHelper
}

template <typename vT>
static std::string valueToString(const vT& value, bool quoteString = true)
static std::string valueToString(const vT& value, [[maybe_unused]] bool quoteString = true)
{
std::string result;
if constexpr (std::is_same_v<vT, std::string>)
Expand Down
Loading