From 78bf280541202310436aa56c9aa7e79269360f0a Mon Sep 17 00:00:00 2001 From: light7734 Date: Thu, 17 Jul 2025 11:05:03 +0330 Subject: [PATCH] ci: add valgrind check --- .drone.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/.drone.yml b/.drone.yml index 8707deb..d97852d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -66,6 +66,36 @@ steps: "$test" done +--- +kind: pipeline +type: docker +name: valgrind +clone: + recursive: true + submodule_update_remote: true + +trigger: + branch: + - main + +steps: +- name: valgrind + image: valgrind:latest + pull: if-not-exists + commands: + - | + set -e + + git submodule update --init --recursive + conan build . \ + -c tools.system.package_manager:mode=install \ + -s build_type=Release \ + -o enable_static_analysis=False \ + -o enable_tests=True \ + --build=missing + + find ./build -type f -name "tests" -executable | xargs -I {} bash -c 'valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --error-exitcode=255 {}' || exit 1 + --- kind: pipeline type: docker