In the following preset file:
{
"version": 10,
"cmakeMinimumRequired": {
"major": 3,
"minor": 31,
"patch": 0
},
"configurePresets": [
{
"name": "common-configure-settings",
"description": "Options and CMake settings common to all configure presets",
"binaryDir": "${sourceDir}/build/${presetName}",
"hidden": true
},
{
"name": "ninja-multi",
"hidden": true,
"generator": "Ninja Multi-Config"
},
{
"name": "release",
...
},
{
"name": "debug",
"displayName": "Debug",
"hidden": true,
"inherits": "common-configure-settings",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "cpp-std",
"description": "This preset makes sure the project actually builds with at least the specified standard",
"hidden": true,
"cacheVariables": {
"CMAKE_CXX_EXTENSIONS": "OFF",
"CMAKE_CXX_STANDARD": "20",
"CMAKE_CXX_STANDARD_REQUIRED": "ON"
}
},
{
"name": "cpp-build",
"hidden": true,
"inherits": ["release"],
"cacheVariables": {
"CMAKE_CXX_FLAGS": "$env{CXX_WARNINGS} $env{CXX_OPT}"
}
},
{
"name": "linux",
"hidden": false,
"inherits": ["cpp-std", "cpp-build", "ninja-multi"],
"description": "Build preset for Linux",
"environment": {
"CXX_WARNINGS": "-Wall -Wextra -Werror -pedantic",
"CXX_OPT": "-fsized-deallocation -fno-math-errno -march=x86-64-v3",
"PLATFORM": "POSIX64"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "development",
"displayName": "Development Build",
"hidden": false,
"inherits": [
"debug",
"ninja-multi"
]
}
],
"buildPresets": [
{
"name": "development-build",
"configurePreset": "development"
},
{
"name": "linux-build",
"configurePreset": "linux"
}
],
"testPresets": [
{
"name": "test-all",
...
}
],
"packagePresets": [
{
"name": "default-linux-package",
"configurePreset": "linux",
"generators": [
"TGZ"
]
}
],
"workflowPresets": [
{
"name": "test",
"steps": [
{
"type": "configure",
"name": "development"
},
{
"type": "build",
"name": "development-build"
},
{
"type": "test",
"name": "test-all"
}
]
},
{
"name": "release",
"steps": [
{
"type": "configure",
"name": "linux"
},
{
"type": "build",
"name": "linux-build"
},
{
"type": "test",
"name": "test-all"
},
{
"type": "package",
"name": "default-linux-package"
}
]
}
]
}
I get the error: Invalid workflow step "linux"
. What is the exact reason for the error in this particular step?