11{
2- "version" : 4 ,
2+ "version" : 9 ,
3+ "cmakeMinimumRequired" : {
4+ "major" : 3 ,
5+ "minor" : 30
6+ },
7+ "include" : [
8+ " cmake/CMake${hostSystemName}Presets.json"
9+ ],
310 "configurePresets" : [
411 {
5- "name" : " default" ,
12+ "name" : " base" ,
13+ "inherits" : [" vcpkg" ],
614 "binaryDir" : " ${sourceDir}/_build/${presetName}" ,
715 "hidden" : true ,
816 "cacheVariables" : {
1523 }
1624 },
1725 {
18- "name" : " vcpkg-windows" ,
19- "inherits" : [" default" ],
20- "toolchainFile" : " $env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" ,
21- "generator" : " Ninja" ,
22- "cacheVariables" : {
23- "CMAKE_BUILD_TYPE" : " Debug" ,
24- "VCPKG_HOST_TRIPLET" : " x86-windows-static" ,
25- "VCPKG_TARGET_TRIPLET" : " x86-windows-static"
26- }
27- },
28- {
29- "name" : " vcpkg-linux" ,
30- "inherits" : [" default" ],
31- "toolchainFile" : " $env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" ,
32- "generator" : " Ninja" ,
33- "cacheVariables" : {
34- "CMAKE_BUILD_TYPE" : " Debug" ,
35- "VCPKG_HOST_TRIPLET" : " x86-linux" ,
36- "VCPKG_TARGET_TRIPLET" : " x86-linux" ,
37- "VCPKG_CHAINLOAD_TOOLCHAIN_FILE" : " ${sourceDir}/cmake/toolchains/linux-gcc.cmake"
38- }
39- },
40- {
41- "name" : " ci-base" ,
42- "hidden" : true ,
26+ "name" : " github-actions" ,
27+ "inherits" : [" base" ],
28+ "generator" : " Ninja Multi-Config" ,
29+ "architecture" : " " ,
4330 "cacheVariables" : {
44- "CMAKE_BUILD_TYPE" : " RelWithDebInfo" ,
4531 "BUILD_TESTING" : true ,
4632 "GNU_FORCE_COLORED_OUTPUT" : false ,
4733 "USE_UPDATER" : true ,
4834 "GENERATE_AMXX_OFFSETS" : true ,
4935 "WARNINGS_ARE_ERRORS" : true
5036 }
51- },
52- {
53- "name" : " ci-windows" ,
54- "inherits" : [" ci-base" , " vcpkg-windows" ]
55- },
56- {
57- "name" : " ci-linux" ,
58- "inherits" : [" ci-base" , " vcpkg-linux" ]
5937 }
6038 ],
6139 "buildPresets" : [
6240 {
63- "name" : " ci-base" ,
64- "hidden" : true ,
65- "inheritConfigureEnvironment" : true
66- },
67- {
68- "name" : " ci-windows" ,
69- "inherits" : [" ci-base" ],
70- "configurePreset" : " ci-windows"
71- },
72- {
73- "name" : " ci-linux" ,
74- "inherits" : [" ci-base" ],
75- "configurePreset" : " ci-linux"
41+ "name" : " github-actions" ,
42+ "configurePreset" : " github-actions" ,
43+ "inheritConfigureEnvironment" : true ,
44+ "configuration" : " RelWithDebInfo"
7645 }
7746 ],
7847 "testPresets" : [
7948 {
80- "name" : " ci-base " ,
81- "hidden " : true ,
49+ "name" : " github-actions " ,
50+ "configurePreset " : " github-actions " ,
8251 "output" : {
8352 "outputOnFailure" : true
8453 }
85- },
86- {
87- "name" : " ci-windows" ,
88- "inherits" : [" ci-base" ],
89- "configurePreset" : " ci-windows"
90- },
91- {
92- "name" : " ci-linux" ,
93- "inherits" : [" ci-base" ],
94- "configurePreset" : " ci-linux"
9554 }
9655 ]
9756}
0 commit comments