|
4 | 4 | "configurePresets": [ |
5 | 5 | { |
6 | 6 | "name": "default", |
7 | | - "binaryDir": "${sourceDir}/build", |
| 7 | + "binaryDir": "build", |
8 | 8 | "cacheVariables": { |
| 9 | + "CMAKE_BUILD_TYPE": "Release", |
9 | 10 | "CMAKE_COMPILE_WARNING_AS_ERROR": true, |
10 | 11 | "CMAKE_LINK_WARNING_AS_ERROR": true |
11 | 12 | } |
|
15 | 16 | }, |
16 | 17 | { "name": "gmake", "inherits": "default", |
17 | 18 | "generator": "Unix Makefiles" |
| 19 | +}, |
| 20 | +{ "name": "build", "inherits": "default"}, |
| 21 | +{ |
| 22 | + "name": "debug", "inherits": "default", |
| 23 | + "cacheVariables": { |
| 24 | + "CMAKE_BUILD_TYPE": "Debug" |
| 25 | + } |
| 26 | +}, |
| 27 | +{ |
| 28 | + "name": "msvc", "inherits": "default", |
| 29 | + "generator": "Visual Studio 18 2026" |
18 | 30 | } |
19 | 31 | ], |
20 | 32 | "buildPresets": [ |
21 | 33 | { |
22 | 34 | "name": "default", |
23 | | - "configurePreset": "default" |
24 | | - }, |
25 | | - { |
26 | | - "name": "release", |
27 | 35 | "configurePreset": "default", |
28 | | - "configuration": "Release" |
| 36 | + "configuration": "Release", |
| 37 | + "jobs": 0 |
29 | 38 | }, |
| 39 | + { "name": "build", "inherits": "default", "configurePreset": "build" }, |
| 40 | + { "name": "msvc", "inherits": "default", "configurePreset": "msvc" }, |
| 41 | + { "name": "debug", "configurePreset": "debug", "configuration": "Debug" }, |
30 | 42 | { |
31 | 43 | "name": "reldebug", |
32 | 44 | "configurePreset": "default", |
33 | 45 | "configuration": "RelWithDebInfo", |
34 | 46 | "displayName": "Release with Debug Info" |
35 | 47 | }, |
36 | | - { |
37 | | - "name": "debug", |
38 | | - "configurePreset": "default", |
39 | | - "configuration": "Debug" |
40 | | - }, |
41 | 48 | { "name": "ninja", "configurePreset": "ninja" }, |
42 | 49 | { "name": "gmake", "configurePreset": "gmake" } |
43 | 50 | ], |
44 | 51 | "testPresets": [ |
45 | 52 | { |
46 | 53 | "name": "default", |
47 | 54 | "configurePreset": "default", |
| 55 | + "configuration": "Release", |
48 | 56 | "output": { |
49 | 57 | "outputOnFailure": true, |
50 | 58 | "verbosity": "verbose" |
|
53 | 61 | "noTestsAction": "error", |
54 | 62 | "scheduleRandom": true, |
55 | 63 | "stopOnFailure": false, |
56 | | - "timeout": 15 |
| 64 | + "jobs": 4 |
57 | 65 | } |
58 | 66 | }, |
59 | | -{ |
60 | | - "name": "release", "inherits": "default", |
61 | | - "configurePreset": "default", |
62 | | - "configuration": "Release" |
63 | | -}, |
64 | 67 | { |
65 | 68 | "name": "reldebug", "inherits": "default", |
66 | 69 | "configurePreset": "default", |
67 | 70 | "configuration": "RelWithDebInfo", |
68 | 71 | "displayName": "Release with Debug Info" |
69 | 72 | }, |
| 73 | +{ "name": "msvc", "inherits": "default", "configurePreset": "msvc" }, |
70 | 74 | { |
71 | 75 | "name": "debug", "inherits": "default", |
72 | | - "configurePreset": "default", |
| 76 | + "configurePreset": "debug", |
73 | 77 | "configuration": "Debug" |
74 | 78 | }, |
75 | 79 | { "name": "ninja", "configurePreset": "ninja" }, |
|
78 | 82 | "workflowPresets": [ |
79 | 83 | { |
80 | 84 | "name": "default", |
| 85 | + "displayName": "build and test", |
81 | 86 | "steps": [ |
82 | 87 | { "type": "configure", "name": "default" }, |
83 | 88 | { "type": "build", "name": "default" }, |
84 | 89 | { "type": "test", "name": "default" } |
85 | | - |
| 90 | + ] |
| 91 | + }, |
| 92 | + { |
| 93 | + "name": "build", |
| 94 | + "displayName": "build only", |
| 95 | + "steps": [ |
| 96 | + { "type": "configure", "name": "build" }, |
| 97 | + { "type": "build", "name": "build" } |
86 | 98 | ] |
87 | 99 | }, |
88 | 100 | { |
89 | 101 | "name": "debug", |
| 102 | + "displayName": "Debug build and test", |
90 | 103 | "steps": [ |
91 | | - { "type": "configure", "name": "default" }, |
| 104 | + { "type": "configure", "name": "debug" }, |
92 | 105 | { "type": "build", "name": "debug" }, |
93 | 106 | { "type": "test", "name": "debug" } |
94 | 107 | ] |
95 | 108 | }, |
96 | 109 | { |
97 | | - "name": "release", |
| 110 | + "name": "msvc", |
| 111 | + "displayName": "MSVC build and test", |
98 | 112 | "steps": [ |
99 | | - { "type": "configure", "name": "default" }, |
100 | | - { "type": "build", "name": "release" }, |
101 | | - { "type": "test", "name": "release" } |
| 113 | + { "type": "configure", "name": "msvc" }, |
| 114 | + { "type": "build", "name": "msvc" }, |
| 115 | + { "type": "test", "name": "msvc" } |
102 | 116 | ] |
103 | 117 | }, |
104 | 118 | { |
105 | 119 | "name": "ninja", |
| 120 | + "displayName": "Ninja build and test", |
106 | 121 | "steps": [ |
107 | 122 | { "type": "configure", "name": "ninja" }, |
108 | 123 | { "type": "build", "name": "ninja" }, |
|
111 | 126 | }, |
112 | 127 | { |
113 | 128 | "name": "gmake", |
| 129 | + "displayName": "GNU Make build and test", |
114 | 130 | "steps": [ |
115 | 131 | { "type": "configure", "name": "gmake" }, |
116 | 132 | { "type": "build", "name": "gmake" }, |
|
0 commit comments