adding CI without makefile
CI / build-and-test (push) Successful in 6s

This commit is contained in:
2026-07-29 13:47:52 +02:00
parent 161f664cb3
commit ffe31be218
2 changed files with 2 additions and 34 deletions
+2 -3
View File
@@ -14,9 +14,8 @@ jobs:
fetch-depth: 0
- name: Compile
run: |
cmake -B build -DBUILD_TEST=ON
cmake --build build
g++ ./src/device/EventBus.h ./test/main.cpp -o main
- name: Run tests
run: |
./build/test
./main
-31
View File
@@ -92,34 +92,3 @@ install(
)
endif()
################################################################################
## Test
################################################################################
if(${BUILD_TEST})
add_executable(test
test/main.cpp
)
set_property(
TARGET
test
PROPERTY
CXX_STANDARD 17
)
target_include_directories(
test
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)
target_link_libraries(
test
PRIVATE
midas::mfe
${LIBS}
)
endif()