re-add testPresets

This commit is contained in:
Jettford 2024-12-08 20:48:36 +00:00
parent 83e08f63bc
commit 10e64a5d20

View File

@ -1,95 +1,191 @@
{ {
"version": 6, "version": 6,
"cmakeMinimumRequired": { "cmakeMinimumRequired": {
"major": 3, "major": 3,
"minor": 25, "minor": 25,
"patch": 0 "patch": 0
}, },
"configurePresets": [ "configurePresets": [
{ {
"name": "default", "name": "default",
"displayName": "Default configure step", "displayName": "Default configure step",
"description": "Use 'build' dir and Unix makefiles", "description": "Use 'build' dir and Unix makefiles",
"binaryDir": "${sourceDir}/build", "binaryDir": "${sourceDir}/build",
"generator": "Unix Makefiles", "generator": "Unix Makefiles",
"hidden": true
"hidden": true },
}, {
{ "name": "windows-default",
"name": "windows-default", "inherits": "default",
"inherits": "default", "displayName": "Windows Default Configure Settings",
"displayName": "Windows Default Configure Settings", "description": "Sets build and install directories",
"description": "Sets build and install directories", "generator": "Visual Studio 17 2022",
"generator": "Visual Studio 17 2022", "condition": {
"condition": { "type": "equals",
"type": "equals", "lhs": "${hostSystemName}",
"lhs": "${hostSystemName}", "rhs": "Windows"
"rhs": "Windows" },
}, "hidden": true
},
"hidden": true {
}, "name": "windows-msvc",
{ "inherits": "windows-default",
"name": "windows-msvc", "displayName": "Windows (MSVC)",
"inherits": "windows-default", "description": "Create a build using MSVC"
"displayName": "Windows (MSVC)", },
"description": "Create a build using MSVC" {
}, "name": "windows-clang",
{ "inherits": "windows-default",
"name": "windows-clang", "displayName": "EXPERIMENTAL - Windows (Clang)",
"inherits": "windows-default", "description": "Create a build using Clang",
"displayName": "EXPERIMENTAL - Windows (Clang)", "toolset": "ClangCL"
"description": "Create a build using Clang", },
"toolset": "ClangCL" {
}, "name": "linux-default",
"inherits": "default",
{ "hidden": true,
"name": "linux-default", "condition": {
"inherits": "default", "type": "equals",
"hidden": true, "lhs": "${hostSystemName}",
"condition": { "rhs": "Linux"
"type": "equals", }
"lhs": "${hostSystemName}", },
"rhs": "Linux" {
} "name": "linux-clang",
}, "inherits": "linux-default",
{ "toolchainFile": "${sourceDir}/cmake/toolchains/linux-clang.cmake",
"name": "linux-clang", "displayName": "Linux (Clang)",
"inherits": "linux-default", "description": "Create a build using the Clang toolchain for Linux"
},
"toolchainFile": "${sourceDir}/cmake/toolchains/linux-clang.cmake", {
"name": "linux-gnu",
"displayName": "Linux (Clang)", "inherits": "linux-default",
"description": "Create a build using the Clang toolchain for Linux" "toolchainFile": "${sourceDir}/cmake/toolchains/linux-gnu.cmake",
}, "displayName": "Linux (GNU)",
{ "description": "Create a build using the GNU toolchain for Linux"
"name": "linux-gnu", },
"inherits": "linux-default", {
"name": "macos",
"toolchainFile": "${sourceDir}/cmake/toolchains/linux-gnu.cmake", "inherits": "default",
"displayName": "MacOS",
"displayName": "Linux (GNU)", "description": "Create a build for MacOS",
"description": "Create a build using the GNU toolchain for Linux" "condition": {
}, "type": "equals",
{ "lhs": "${hostSystemName}",
"name": "macos", "rhs": "Darwin"
"inherits": "default", }
"displayName": "MacOS", }
"description": "Create a build for MacOS", ],
"condition": { "buildPresets": [
"type": "equals", {
"lhs": "${hostSystemName}", "name": "default",
"rhs": "Darwin" "configurePreset": "default",
} "displayName": "Default Build",
} "description": "Default Build",
], "jobs": 2
"buildPresets": [ }
{ ],
"name": "default", "testPresets": [
"configurePreset": "default", {
"displayName": "Default Build", "name": "ci-ubuntu-22.04",
"description": "Default Build", "configurePreset": "ci-ubuntu-22.04",
"jobs": 2 "displayName": "CI Tests on Linux",
} "description": "Runs all tests on a linux configuration",
] "execution": {
} "jobs": 2
},
"output": {
"outputOnFailure": true
}
},
{
"name": "ci-macos-13",
"configurePreset": "ci-macos-13",
"displayName": "CI Tests on MacOS",
"description": "Runs all tests on a Mac configuration",
"execution": {
"jobs": 2
},
"output": {
"outputOnFailure": true
}
},
{
"name": "ci-windows-2022",
"configurePreset": "ci-windows-2022",
"displayName": "CI Tests on windows",
"description": "Runs all tests on a windows configuration",
"configuration": "RelWithDebInfo",
"execution": {
"jobs": 2
},
"output": {
"outputOnFailure": true
},
"filter": {
"exclude": {
"name": "((example)|(minigzip))+"
}
}
}
],
"workflowPresets": [
{
"name": "ci-windows-2022",
"displayName": "[Release] Windows (MSVC)",
"description": "CI workflow preset for Windows",
"steps": [
{
"type": "configure",
"name": "windows-msvc"
},
{
"type": "build",
"name": "default"
},
{
"type": "test",
"name": "default"
}
]
},
{
"name": "ci-ubuntu-22.04",
"displayName": "[Release] Linux (GNU)",
"description": "CI workflow preset for Ubuntu",
"steps": [
{
"type": "configure",
"name": "linux-gnu"
},
{
"type": "build",
"name": "default"
},
{
"type": "test",
"name": "ci-ubuntu-22.04"
}
]
},
{
"name": "ci-macos-13",
"displayName": "[Release] MacOS",
"description": "CI workflow preset for MacOS",
"steps": [
{
"type": "configure",
"name": "macos"
},
{
"type": "build",
"name": "default"
},
{
"type": "test",
"name": "default"
}
]
}
]
}