feat(ci): add USE_MOCKED_KEYCARD_LIB parameter

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 <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-10-11 18:54:04 +02:00
parent ac935b00d7
commit 2c5eeea503
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
3 changed files with 19 additions and 0 deletions

View File

@ -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'
}

View File

@ -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 {

View File

@ -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 {