From 7d20b42e7842cc5152e5a902c08a9f0d1f7c8a89 Mon Sep 17 00:00:00 2001 From: Leon Matthes Date: Tue, 11 Jun 2024 13:04:31 +0200 Subject: [PATCH] Try to debug windows CI failure --- .github/workflows/build.yml | 7 ++++++- CMakeLists.txt | 2 ++ CMakePresets.json | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e89d4c5..ab00417 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,7 +38,12 @@ jobs: run: cmake --preset=ci - name: Build Project - run: cmake --build --preset=ci + run: cmake --build --preset=ci --verbose + + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + with: + limit-access-to-actor: false - name: Run tests run: ctest --preset=ci diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f57d74..112691a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,8 @@ cmake_minimum_required(VERSION 3.12) # for `project(... HOMEPAGE_URL ...)` +cmake_policy(SET CMP0141 NEW) + project(KDBindings DESCRIPTION "Bindings, from the comfort and speed of C++ and without Qt" LANGUAGES CXX diff --git a/CMakePresets.json b/CMakePresets.json index c3ffffc..94f26fb 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -20,7 +20,8 @@ "generator": "Ninja", "binaryDir": "${sourceDir}/build-ci", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release", + "CMAKE_BUILD_TYPE": "RelWithDebInfo", + "CMAKE_MSVC_DEBUG_INFORMATION_FORMAT": "Embedded", "CMAKE_EXPORT_COMPILE_COMMANDS" : "ON", "KDBindings_TESTS" : "ON", "KDBindings_EXAMPLES" : "ON",