From 8576591f6f9b4e4db9ef2ff72bd675527a4391cc Mon Sep 17 00:00:00 2001 From: Ivan Savenko Date: Tue, 11 Jul 2023 15:30:45 +0300 Subject: [PATCH] Add preset that builds in debug mode --- .github/workflows/github.yml | 4 ++++ CMakePresets.json | 23 ++++++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github.yml b/.github/workflows/github.yml index f6d05fe7c..29e3db01d 100644 --- a/.github/workflows/github.yml +++ b/.github/workflows/github.yml @@ -76,6 +76,10 @@ jobs: os: ubuntu-20.04 test: 0 preset: linux-gcc-test + - platform: linux + os: ubuntu-20.04 + test: 0 + preset: linux-gcc-debug - platform: mac-intel os: macos-12 test: 0 diff --git a/CMakePresets.json b/CMakePresets.json index e37128de2..d3f03fa5c 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -70,6 +70,18 @@ "description": "VCMI Linux GCC", "inherits": "linux-release", "cacheVariables": { + "ENABLE_LUA" : "ON", + "CMAKE_C_COMPILER": "/usr/bin/gcc", + "CMAKE_CXX_COMPILER": "/usr/bin/g++" + } + }, + { + "name": "linux-gcc-debug", + "displayName": "GCC x86_64-pc-linux-gnu (debug)", + "description": "VCMI Linux GCC (Debug)", + "inherits": "linux-release", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", "ENABLE_LUA" : "ON", "ENABLE_PCH" : "OFF", "CMAKE_C_COMPILER": "/usr/bin/gcc", @@ -93,7 +105,6 @@ "inherits": "linux-test", "cacheVariables": { "ENABLE_LUA" : "OFF", - "ENABLE_PCH" : "OFF", "CMAKE_C_COMPILER": "/usr/bin/gcc", "CMAKE_CXX_COMPILER": "/usr/bin/g++" } @@ -239,6 +250,11 @@ "hidden": true, "configuration": "RelWithDebInfo" }, + { + "name": "default-debug", + "hidden": true, + "configuration": "Debug" + }, { "name": "linux-clang-release", "configurePreset": "linux-clang-release", @@ -259,6 +275,11 @@ "configurePreset": "linux-gcc-release", "inherits": "default-release" }, + { + "name": "linux-gcc-debug", + "configurePreset": "linux-gcc-debug", + "inherits": "default-debug" + }, { "name": "macos-xcode-release", "configurePreset": "macos-xcode-release",