diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f07b4ab..7979570 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,7 @@ jobs: # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. matrix: os: [ubuntu-24.04, windows-latest] - build_type: [Release] + build_type: [Release, Debug] c_compiler: [gcc, clang, cl] include: - os: windows-latest @@ -48,6 +48,13 @@ jobs: - uses: actions/checkout@v4 - name: Install ninja-build tool uses: seanmiddleditch/gha-setup-ninja@v5 + + - name: compiler setup + if: startsWith(runner.os, 'Linux') + shell: bash + run: | + echo "CC=${{ matrix.c_compiler }}" >> $GITHUB_ENV + echo "CXX=${{ matrix.cpp_compiler }}" >> $GITHUB_ENV - name: Install Qt # You may pin to the exact commit or the version. @@ -97,8 +104,6 @@ jobs: # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type run: > cmake -B ${{ steps.strings.outputs.build-output-dir }} - -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} - -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S ${{ github.workspace }} -D "BOOST_ROOT=${{ env.BOOST_ROOT }}" diff --git a/tests/testqt/CMakeLists.txt b/tests/testqt/CMakeLists.txt index 40a4e95..bce379a 100644 --- a/tests/testqt/CMakeLists.txt +++ b/tests/testqt/CMakeLists.txt @@ -3,7 +3,7 @@ qt_standard_project_setup() qt_add_executable(testqt testqt.cpp) -set_property(TARGET testqt PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$:Debug>") +set_property(TARGET testqt PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded") set_target_properties(testqt PROPERTIES FOLDER "ucoro_tests") target_link_libraries(testqt PRIVATE ucoro Qt6::Core)