From 1aadd2772b47f0907f0b3648cb9716aecd45bac4 Mon Sep 17 00:00:00 2001 From: Dasperal Date: Wed, 12 Jun 2024 18:06:31 +0300 Subject: [PATCH] Cmake: Add cmake presets for CI Release builds --- CMakePresets.json | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index 4080b96..8b4b94c 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -37,6 +37,24 @@ "dev": true, "deprecated": true } + }, + { + "name": "ci-watcom-release", + "inherits": "ci-watcom", + "displayName": "Watcom (CI|Release)", + "description": "Watcom configuration for CI Release builds", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release" + }, + "warnings": { + "dev": false, + "deprecated": false, + "uninitialized": false + }, + "errors": { + "dev": false, + "deprecated": false + } } ], "buildPresets": [ @@ -50,6 +68,30 @@ "lhs": "$penv{CI}", "rhs": "true" } + }, + { + "name": "ci-watcom-release", + "configurePreset": "ci-watcom-release", + "displayName": "Watcom (CI|Release)", + "description": "Cmake build configuration for CI Release builds using Watcom", + "condition": { + "type": "equals", + "lhs": "$penv{CI}", + "rhs": "true" + } + } + ], + "packagePresets": [ + { + "name": "ci-watcom-release", + "configurePreset": "ci-watcom-release", + "displayName": "Watcom (CI|Release)", + "description": "Cpack configuration for CI Release builds using Watcom", + "condition": { + "type": "equals", + "lhs": "$penv{CI}", + "rhs": "true" + } } ], "workflowPresets": [ @@ -67,6 +109,25 @@ "name": "ci-watcom" } ] + }, + { + "name": "ci-watcom-release", + "displayName": "Watcom (CI|Release)", + "description": "Workflow for CI Release builds using Watcom", + "steps": [ + { + "type": "configure", + "name": "ci-watcom-release" + }, + { + "type": "build", + "name": "ci-watcom-release" + }, + { + "type": "package", + "name": "ci-watcom-release" + } + ] } ] } \ No newline at end of file