From f391c3c89910d34bf40ab74b1393e9534990c95e Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Tue, 8 Jul 2025 12:32:16 +0100 Subject: [PATCH] feat: Run sanitizers for Debug builds as well (#2296) --- .github/workflows/sanitizers.yml | 11 ++++++++--- .github/workflows/test_impl.yml | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index f6afd5b3..f99c57fe 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -37,12 +37,17 @@ jobs: strategy: fail-fast: false matrix: - compiler: ["gcc", "clang"] - sanitizer_ext: [".asan", ".tsan", ".ubsan"] + compiler: [gcc, clang] + sanitizer_ext: [.asan, .tsan, .ubsan] + build_type: [Release, Debug] exclude: # Currently, clang.tsan unit tests hang - compiler: clang sanitizer_ext: .tsan + build_type: Release + - compiler: clang + sanitizer_ext: .tsan + build_type: Debug uses: ./.github/workflows/build_and_test.yml with: @@ -50,7 +55,7 @@ jobs: container: '{ "image": "ghcr.io/xrplf/clio-ci:latest" }' disable_cache: true conan_profile: ${{ matrix.compiler }}${{ matrix.sanitizer_ext }} - build_type: Release + build_type: ${{ matrix.build_type }} static: false run_unit_tests: true run_integration_tests: false diff --git a/.github/workflows/test_impl.yml b/.github/workflows/test_impl.yml index 72c962c9..d6909fdc 100644 --- a/.github/workflows/test_impl.yml +++ b/.github/workflows/test_impl.yml @@ -85,7 +85,7 @@ jobs: if: env.SANITIZER_IGNORE_ERRORS == 'true' && steps.check_report.outputs.found_report == 'true' uses: actions/upload-artifact@v4 with: - name: ${{ inputs.conan_profile }}_report + name: sanitizer_report_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }} path: .sanitizer-report/* include-hidden-files: true