From a94a72bfdcc15970d88efd95e303d31897944d57 Mon Sep 17 00:00:00 2001 From: DNKpp Date: Mon, 23 Dec 2024 13:57:12 +0100 Subject: [PATCH] ci: enable cpptrace for c++20 builds --- .github/workflows/build.yml | 7 +++++++ .github/workflows/coverage.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa60eb94d..533bcdde3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -399,6 +399,12 @@ jobs: run: | echo "ASAN_OPTIONS=$(echo $ASAN_OPTIONS:alloc_dealloc_mismatch=0)" >> $GITHUB_ENV + - name: Enable cpptrace if c++20 + if: ${{ matrix.cxx_standard == 20 }} + shell: bash + run: | + echo "CMAKE_CONFIG_EXTRA=$(echo $CMAKE_CONFIG_EXTRA -MIMICPP_CONFIG_EXPERIMENTAL_USE_CPPTRACE=YES)" >> $GITHUB_ENV + - name: Configure shell: bash run: | @@ -408,6 +414,7 @@ jobs: --log-level=DEBUG \ -D CMAKE_VERBOSE_MAKEFILE=YES \ -D MIMICPP_FORCED_CXX_STANDARD="${{ matrix.cxx_standard }}" \ + -D MIMICPP_CONFIG_EXPERIMENTAL_STACKTRACE=YES \ ${{ env.CMAKE_CONFIG_EXTRA }} - name: Build diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6fe70d6ba..0e26ad8da 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -38,7 +38,7 @@ jobs: -D MIMICPP_CONFIG_EXPERIMENTAL_CATCH2_MATCHER_INTEGRATION=YES \ -D MIMICPP_CONFIG_EXPERIMENTAL_UNICODE_STR_MATCHER=YES \ -D MIMICPP_CONFIG_EXPERIMENTAL_STACKTRACE=YES \ - -D MIMICPP_CONFIG_USE_CPPTRACE=YES + -D MIMICPP_CONFIG_EXPERIMENTAL_USE_CPPTRACE=YES - name: Build run: |