Add basic presets
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This commit is contained in:
parent
cae6fad800
commit
f94b761828
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
build*/
|
build*/
|
||||||
*.sw?
|
*.sw?
|
||||||
|
cmake-build-*
|
||||||
|
|||||||
7
CMakePresets.json
Normal file
7
CMakePresets.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 6,
|
||||||
|
"include": [
|
||||||
|
"cmake/CMakePresets-defaults.json",
|
||||||
|
"cmake/CMakePresets-CI.json"
|
||||||
|
]
|
||||||
|
}
|
||||||
253
cmake/CMakePresets-CI.json
Normal file
253
cmake/CMakePresets-CI.json
Normal file
@ -0,0 +1,253 @@
|
|||||||
|
{
|
||||||
|
"version": 6,
|
||||||
|
"include": [
|
||||||
|
"CMakePresets-defaults.json"
|
||||||
|
],
|
||||||
|
"configurePresets": [
|
||||||
|
{
|
||||||
|
"name": "ci-base",
|
||||||
|
"hidden": true,
|
||||||
|
"generator": "Ninja",
|
||||||
|
"inherits": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"cacheVariables": {
|
||||||
|
"JSON_VALIDATOR_BUILD_TESTS": {
|
||||||
|
"type": "BOOL",
|
||||||
|
"value": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"errors": {
|
||||||
|
"deprecated": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "gcc-ci",
|
||||||
|
"displayName": "Configure preset for GCC toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"binaryDir": "cmake-build-release-gcc",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_CXX_COMPILER": {
|
||||||
|
"type": "FILEPATH",
|
||||||
|
"value": "g++"
|
||||||
|
},
|
||||||
|
"CMAKE_LINKER": {
|
||||||
|
"type": "FILEPATH",
|
||||||
|
"value": "ld"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "intel-ci",
|
||||||
|
"displayName": "Configure preset for Intel toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"binaryDir": "cmake-build-release-intel",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_CXX_COMPILER": {
|
||||||
|
"type": "FILEPATH",
|
||||||
|
"value": "icpx"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "llvm-ci",
|
||||||
|
"displayName": "Configure preset for LLVM toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"binaryDir": "cmake-build-release-llvm",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_CXX_COMPILER": {
|
||||||
|
"type": "FILEPATH",
|
||||||
|
"value": "clang++"
|
||||||
|
},
|
||||||
|
"CMAKE_LINKER": {
|
||||||
|
"type": "FILEPATH",
|
||||||
|
"value": "lld"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ci-coverage",
|
||||||
|
"displayName": "Configure preset for test coverage",
|
||||||
|
"inherits": [
|
||||||
|
"gcc-ci"
|
||||||
|
],
|
||||||
|
"binaryDir": "cmake-build-coverage",
|
||||||
|
"errors": {
|
||||||
|
"deprecated": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "pre-commit",
|
||||||
|
"displayName": "Configure preset for pre-commit checks",
|
||||||
|
"inherits": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"binaryDir": "cmake-build-pre-commit"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"buildPresets": [
|
||||||
|
{
|
||||||
|
"name": "ci-base",
|
||||||
|
"hidden": true,
|
||||||
|
"inherits": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"cleanFirst": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ci-coverage",
|
||||||
|
"displayName": "Build preset for test coverage",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"configurePreset": "ci-coverage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "gcc-ci",
|
||||||
|
"displayName": "Build preset for GCC toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"configurePreset": "gcc-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "intel-ci",
|
||||||
|
"displayName": "Build preset for Intel toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"configurePreset": "intel-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "llvm-ci",
|
||||||
|
"displayName": "Build preset for LLVM toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"configurePreset": "llvm-ci"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testPresets": [
|
||||||
|
{
|
||||||
|
"name": "ci-base",
|
||||||
|
"hidden": true,
|
||||||
|
"inherits": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"output": {
|
||||||
|
"outputOnFailure": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ci-coverage",
|
||||||
|
"inherits": [
|
||||||
|
"default"
|
||||||
|
],
|
||||||
|
"configurePreset": "ci-coverage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "gcc-ci",
|
||||||
|
"displayName": "Test preset for GCC toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"configurePreset": "gcc-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "intel-ci",
|
||||||
|
"displayName": "Test preset for Intel toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"configurePreset": "intel-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "llvm-ci",
|
||||||
|
"displayName": "Test preset for LLVM toolchain",
|
||||||
|
"inherits": [
|
||||||
|
"ci-base"
|
||||||
|
],
|
||||||
|
"configurePreset": "llvm-ci"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"workflowPresets": [
|
||||||
|
{
|
||||||
|
"name": "gcc-ci",
|
||||||
|
"displayName": "CI test for GCC toolchain",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"type": "configure",
|
||||||
|
"name": "gcc-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"name": "gcc-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "test",
|
||||||
|
"name": "gcc-ci"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "intel-ci",
|
||||||
|
"displayName": "CI test for Intel toolchain",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"type": "configure",
|
||||||
|
"name": "intel-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"name": "intel-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "test",
|
||||||
|
"name": "intel-ci"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "llvm-ci",
|
||||||
|
"displayName": "CI test for LLVM toolchain",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"type": "configure",
|
||||||
|
"name": "llvm-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"name": "llvm-ci"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "test",
|
||||||
|
"name": "llvm-ci"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "ci-coverage",
|
||||||
|
"displayName": "Coverage tests",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"type": "configure",
|
||||||
|
"name": "ci-coverage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"name": "ci-coverage"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "test",
|
||||||
|
"name": "ci-coverage"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
50
cmake/CMakePresets-defaults.json
Normal file
50
cmake/CMakePresets-defaults.json
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"version": 6,
|
||||||
|
"configurePresets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"displayName": "Default configuration preset",
|
||||||
|
"binaryDir": "cmake-build-release",
|
||||||
|
"cacheVariables": {
|
||||||
|
"CMAKE_BUILD_TYPE": {
|
||||||
|
"type": "STRING",
|
||||||
|
"value": "Release"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"buildPresets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"displayName": "Default build preset",
|
||||||
|
"configurePreset": "default"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"testPresets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"displayName": "Default test preset",
|
||||||
|
"configurePreset": "default"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"workflowPresets": [
|
||||||
|
{
|
||||||
|
"name": "default",
|
||||||
|
"displayName": "Default workflow",
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"type": "configure",
|
||||||
|
"name": "default"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "build",
|
||||||
|
"name": "default"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "test",
|
||||||
|
"name": "default"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user