From ffe31be21855eb48525ae98c733b51bc1eaae99c Mon Sep 17 00:00:00 2001 From: Hugo Jean Ponsin Date: Wed, 29 Jul 2026 13:47:52 +0200 Subject: [PATCH] adding CI without makefile --- .gitea/workflows/action.yaml | 5 ++--- CMakeLists.txt | 31 ------------------------------- 2 files changed, 2 insertions(+), 34 deletions(-) diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml index cc44d7c..c3051fb 100644 --- a/.gitea/workflows/action.yaml +++ b/.gitea/workflows/action.yaml @@ -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 \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index a94f725..99d952b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() \ No newline at end of file