From 2c5eeea50311554fad2343a4aebebfba10128a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 11 Oct 2023 18:54:04 +0200 Subject: [PATCH] feat(ci): add USE_MOCKED_KEYCARD_LIB parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It will default to `true` for Linux builds except release ones. This setting can always be overriden manually for any build. Resolves: https://github.com/status-im/status-desktop/issues/12412 Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.linux | 9 +++++++++ ci/Jenkinsfile.macos | 5 +++++ ci/Jenkinsfile.windows | 5 +++++ 3 files changed, 19 insertions(+) diff --git a/ci/Jenkinsfile.linux b/ci/Jenkinsfile.linux index c32afc3699..4299b3de8a 100644 --- a/ci/Jenkinsfile.linux +++ b/ci/Jenkinsfile.linux @@ -31,6 +31,11 @@ pipeline { description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', defaultValue: '--colors:off' ) + booleanParam( + name: 'USE_MOCKED_KEYCARD_LIB', + description: 'Decides whether the mocked status-keycard-go library is built.', + defaultValue: getMockedKeycardLibDefault() + ) } options { @@ -114,3 +119,7 @@ def getArch() { if (tokens.contains(arch)) { return arch } } } + +def getMockedKeycardLibDefault() { + return utils.isReleaseBuild() ? 'false' : 'true' +} diff --git a/ci/Jenkinsfile.macos b/ci/Jenkinsfile.macos index 2203ff9e41..424ea992c9 100644 --- a/ci/Jenkinsfile.macos +++ b/ci/Jenkinsfile.macos @@ -26,6 +26,11 @@ pipeline { description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', defaultValue: '--colors:off' ) + booleanParam( + name: 'USE_MOCKED_KEYCARD_LIB', + description: 'Decides whether the mocked status-keycard-go library is built.', + defaultValue: false + ) } options { diff --git a/ci/Jenkinsfile.windows b/ci/Jenkinsfile.windows index 2fda339ad4..1feaa0fcac 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -23,6 +23,11 @@ pipeline { description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"', defaultValue: '--colors:off' ) + booleanParam( + name: 'USE_MOCKED_KEYCARD_LIB', + description: 'Decides whether the mocked status-keycard-go library is built.', + defaultValue: false + ) } options {