From 48489ae767d29892e52cdbea039661f8c39c64a2 Mon Sep 17 00:00:00 2001 From: tiankaima Date: Sat, 16 Dec 2023 01:57:34 +0800 Subject: [PATCH] fix: add DEBUG symbol when build on ci --- .github/workflows/cmake-multi-platform.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index ad245af..65863a1 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -52,7 +52,9 @@ jobs: - name: Build # Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator). - run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} + run: | + cmake -DDEFINE_DEBUG=1 ${{ steps.strings.outputs.build-output-dir }} + cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} - name: Test working-directory: ${{ steps.strings.outputs.build-output-dir }}/Doctests