diff --git a/.github/workflows/ci-downstream.yml b/.github/workflows/ci-downstream.yml new file mode 100644 index 0000000..f68187f --- /dev/null +++ b/.github/workflows/ci-downstream.yml @@ -0,0 +1,24 @@ +name: CI Downstream - LT Streaming Legacy + +on: + workflow_dispatch: + inputs: + opendaq-ref: + description: "openDAQ SDK commit, branch or tag" + required: false + default: "" + pull_request: + +jobs: + call-opendaq-reusable: + name: LT Streaming Legacy + uses: openDAQ/openDAQ-CI/.github/workflows/reusable.yml@v1 + with: + opendaq-ref: ${{ github.event.inputs.opendaq-ref || '' }} + cmake-presets: > + [ + { + "configure-preset": "module", + "test-preset": "module-test" + } + ] diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f7aa9a..3bb8586 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,6 +47,10 @@ cmake_dependent_option( 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() diff --git a/CMakePresets.json b/CMakePresets.json index 99c8a24..e492ee0 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -217,6 +217,20 @@ "intel-llvm", "ninja" ] + }, + { + "name": "module", + "hidden": true, + "cacheVariables": { + "DAQMODULES_LT_STREAMING_ENABLE_TESTS": "ON" + } + } + ], + "testPresets": [ + { + "name": "module-test", + "hidden": true, + "configurePreset": "module" } ] }