Skip to content

Commit c73e65f

Browse files
committed
Add config presets for testing
1 parent 0bed8c3 commit c73e65f

File tree

2 files changed

+34
-19
lines changed

2 files changed

+34
-19
lines changed

.github/actions/build/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
run: |
1010
mkdir -p ../build
1111
rm -rf ../build/*
12-
cmake -DYDB_SDK_TESTS=On -DYDB_SDK_EXAMPLES=On -DARCADIA_ROOT="../ydb-cpp-sdk" -DARCADIA_BUILD_ROOT="." --preset release
12+
cmake --preset release-test-with-ccache-basedir
1313
- name: Build
1414
shell: bash
1515
run: |

CMakePresets.json

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@
4040
"displayName": "Default Release Config",
4141
"description": "Default release build configuration using Ninja generator and Clang compiler",
4242
"binaryDir": "${sourceDir}/../build"
43+
},
44+
{
45+
"name": "release-test",
46+
"inherits": "release",
47+
"displayName": "Default Release Test Config",
48+
"description": "Default release build configuration with all tests and examples",
49+
"cacheVariables": {
50+
"YDB_SDK_TESTS": "TRUE",
51+
"YDB_SDK_EXAMPLES": "TRUE"
52+
}
53+
},
54+
{
55+
"name": "release-test-with-ccache-basedir",
56+
"inherits": "release-test",
57+
"displayName": "Release Test Config CCACHE_BASEDIR Case",
58+
"description": "Only for the case when using CCACHE_BASEDIR",
59+
"cacheVariables": {
60+
"ARCADIA_ROOT": "../ydb-cpp-sdk",
61+
"ARCADIA_BUILD_ROOT": "."
62+
}
4363
}
4464
],
4565
"buildPresets": [
@@ -51,51 +71,46 @@
5171
],
5272
"testPresets": [
5373
{
54-
"name": "release",
55-
"configurePreset": "release",
56-
"displayName": "Default Release Tests",
74+
"name": "common",
75+
"hidden": true,
5776
"output": {
5877
"outputOnFailure": true
5978
},
6079
"execution": {
6180
"timeout": 1200
62-
},
81+
}
82+
},
83+
{
84+
"name": "release",
85+
"inherits": "common",
86+
"configurePreset": "release-test",
87+
"displayName": "Default Release Tests",
6388
"environment": {
6489
"YDB_ENDPOINT": "localhost:2136",
6590
"YDB_DATABASE": "/local"
6691
}
6792
},
6893
{
6994
"name": "release-unit",
70-
"configurePreset": "release",
95+
"inherits": "common",
96+
"configurePreset": "release-test",
7197
"displayName": "Default Unit Release Tests",
7298
"filter" : {
7399
"include": {
74100
"label": "unit"
75101
}
76-
},
77-
"output": {
78-
"outputOnFailure": true
79-
},
80-
"execution": {
81-
"timeout": 1200
82102
}
83103
},
84104
{
85105
"name": "release-integration",
86-
"configurePreset": "release",
106+
"inherits": "common",
107+
"configurePreset": "release-test",
87108
"displayName": "Default Integration Release Tests",
88-
"output": {
89-
"outputOnFailure": true
90-
},
91109
"filter" : {
92110
"include": {
93111
"label": "integration"
94112
}
95113
},
96-
"execution": {
97-
"timeout": 1200
98-
},
99114
"environment": {
100115
"YDB_ENDPOINT": "localhost:2136",
101116
"YDB_DATABASE": "/local"

0 commit comments

Comments
 (0)