light/tools/ci/steps/amd64/gcc/valgrind.sh
light7734 798732632a
Some checks failed
continuous-integration/drone/push Build is failing
ci: major refactors & add msvc check (#8)
reviewed-on: #8
Co-authored-by: light7734 <light7734@tuta.io>
Co-committed-by: light7734 <light7734@tuta.io>
2025-07-20 04:37:05 +00:00

15 lines
465 B
Bash
Executable file

#!/bin/bash
set -e
cd $(git rev-parse --show-toplevel)/
rm -rf ./build
conan build . \
-c tools.system.package_manager:mode=install \
-c tools.cmake.cmaketoolchain:generator=Ninja \
-s build_type=Release \
-o enable_tests=True \
-o use_mold=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