Skip to content

Commit a54fd8b

Browse files
committed
Add debug preset for x64 Linux and update workflow configuration
1 parent 01a418f commit a54fd8b

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/cmake-single-platform.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Run CMake consuming CMakePreset.json and run vcpkg to build packages
3030
uses: lukka/run-cmake@v10
3131
with:
32-
configurePreset: 'linux-x64'
32+
configurePreset: 'linux-x64-debug'
3333

3434
- name: Build
3535
# Build your program with the given configuration

CMakePresets.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,22 @@
3030
},
3131
{
3232
"name": "linux-x64",
33+
"hidden": true,
3334
"inherits": "base",
3435
"description": "Preset for x64 Linux",
3536
"cacheVariables": {
3637
"CMAKE_SYSTEM_NAME": "Linux",
3738
"VCPKG_TARGET_TRIPLET": "x64-linux"
3839
}
3940
},
41+
{
42+
"name": "linux-x64-debug",
43+
"inherits": "linux-x64",
44+
"description": "Debug preset for x64 Linux",
45+
"cacheVariables": {
46+
"CMAKE_BUILD_TYPE": "Debug"
47+
}
48+
},
4049
{
4150
"name": "linux-x64-release",
4251
"inherits": "linux-x64",
@@ -84,6 +93,24 @@
8493
"targets": [
8594
"all"
8695
]
96+
},
97+
{
98+
"name": "linux-x64-release",
99+
"configurePreset": "linux-x64-release",
100+
"configuration": "Release",
101+
"jobs": 0,
102+
"targets": [
103+
"all"
104+
]
105+
},
106+
{
107+
"name": "linux-x64-debug",
108+
"configurePreset": "linux-x64-debug",
109+
"configuration": "Debug",
110+
"jobs": 0,
111+
"targets": [
112+
"all"
113+
]
87114
}
88115
]
89116
}

0 commit comments

Comments
 (0)