ci: allow to override status-go reference

This commit is contained in:
Siddarth Kumar
2026-07-31 09:32:37 +05:30
parent 7f355b796b
commit 74b1e11412
6 changed files with 72 additions and 3 deletions
+12
View File
@@ -34,6 +34,11 @@ pipeline {
description: 'Level of verbosity based on nimbus-build-system setup.',
choices: ['0','1','2','3']
)
string(
name: 'STATUS_GO_REF',
description: 'Override vendor/status-go submodule to this SHA/ref.',
defaultValue: ''
)
}
options {
@@ -101,6 +106,13 @@ pipeline {
}
}
stage('Override status-go ref') {
when { expression { params.STATUS_GO_REF?.trim() } }
steps {
sh "./scripts/override-status-go-ref.sh ${params.STATUS_GO_REF}"
}
}
stage('QML Lint Mobile') {
steps {
sh 'make qml-lint-mobile QTDIR=/opt/qt/${QT_VERSION}/gcc_64 QT_MOBILE_DIR=/opt/qt/${QT_VERSION}/android_arm64_v8a'
+12
View File
@@ -31,6 +31,11 @@ pipeline {
description: 'TestFlight build polling interval in seconds.',
defaultValue: '30'
)
string(
name: 'STATUS_GO_REF',
description: 'Override vendor/status-go submodule to this SHA/ref.',
defaultValue: ''
)
}
options {
@@ -106,6 +111,13 @@ pipeline {
}
}
stage('Override status-go ref') {
when { expression { params.STATUS_GO_REF?.trim() } }
steps {
sh "./scripts/override-status-go-ref.sh ${params.STATUS_GO_REF}"
}
}
stage('status-go') {
steps {
sh 'make status-go'
+12 -1
View File
@@ -49,6 +49,11 @@ pipeline {
description: 'Build with the simulated (jcardsim) keycard backend (used by keycard e2e tests).',
defaultValue: false
)
string(
name: 'STATUS_GO_REF',
description: 'Override vendor/status-go submodule to this SHA/ref.',
defaultValue: ''
)
}
options {
@@ -93,7 +98,7 @@ pipeline {
RELEASE = "${params.RELEASE}"
INCLUDE_DEBUG_SYMBOLS = "${params.INCLUDE_DEBUG_SYMBOLS}"
VERBOSE = "${params.VERBOSE}"
USE_SIMULATED_KEYCARD = "${params.USE_SIMULATED_KEYCARD}"
USE_SIMULATED_KEYCARD = "${params.USE_SIMULATED_KEYCARD}"
/* FIXME: figure out why NIMFLAGS are not respected */
XDG_CACHE_HOME = "${env.WORKSPACE_TMP}"
/* Ensure nimcache is not shared between builds. */
@@ -111,6 +116,12 @@ pipeline {
sh 'git submodule update --init --recursive'
}
}
stage('Override status-go ref') {
when { expression { params.STATUS_GO_REF?.trim() } }
steps {
sh "./scripts/override-status-go-ref.sh ${params.STATUS_GO_REF}"
}
}
stage('Deps') {
steps {
sh 'make update'
+12 -1
View File
@@ -43,6 +43,11 @@ pipeline {
description: 'Extra Nim flags. Examples: --verbosity:2 --passL:"-v" --passC:"-v"',
defaultValue: ''
)
string(
name: 'STATUS_GO_REF',
description: 'Override vendor/status-go submodule to this SHA/ref.',
defaultValue: ''
)
}
options {
@@ -94,7 +99,7 @@ pipeline {
RELEASE = "${params.RELEASE}"
INCLUDE_DEBUG_SYMBOLS = "${params.INCLUDE_DEBUG_SYMBOLS}"
VERBOSE = "${params.VERBOSE}"
USE_SIMULATED_KEYCARD = "${params.USE_SIMULATED_KEYCARD}"
USE_SIMULATED_KEYCARD = "${params.USE_SIMULATED_KEYCARD}"
/* FIXME: figure out why NIMFLAGS are not respected */
XDG_CACHE_HOME = "${env.WORKSPACE_TMP}/.cache"
/* Ensure nimcache is not shared between builds. */
@@ -115,6 +120,12 @@ pipeline {
sh 'git submodule update --init --recursive'
}
}
stage('Override status-go ref') {
when { expression { params.STATUS_GO_REF?.trim() } }
steps {
sh "./scripts/override-status-go-ref.sh ${params.STATUS_GO_REF}"
}
}
stage('Deps') {
steps {
sh 'make update'
+12 -1
View File
@@ -46,6 +46,11 @@ pipeline {
'https://freetsa.org',
]
)
string(
name: 'STATUS_GO_REF',
description: 'Override vendor/status-go submodule to this SHA/ref.',
defaultValue: ''
)
}
options {
@@ -96,7 +101,7 @@ pipeline {
RELEASE = "${params.RELEASE}"
INCLUDE_DEBUG_SYMBOLS = "${params.INCLUDE_DEBUG_SYMBOLS}"
VERBOSE = "${params.VERBOSE}"
USE_SIMULATED_KEYCARD = "${params.USE_SIMULATED_KEYCARD}"
USE_SIMULATED_KEYCARD = "${params.USE_SIMULATED_KEYCARD}"
/* FIXME: figure out why NIMFLAGS are not respected */
XDG_CACHE_HOME = "${env.WORKSPACE_TMP}/.cache"
/* Nim build on Windows puts nimcache in user HOME. */
@@ -118,6 +123,12 @@ pipeline {
sh 'git submodule update --init --recursive'
}
}
stage('Override status-go ref') {
when { expression { params.STATUS_GO_REF?.trim() } }
steps {
sh "./scripts/override-status-go-ref.sh ${params.STATUS_GO_REF}"
}
}
stage('Deps') {
steps {
sh 'make update'
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Override vendor/status-go submodule to given ref (SHA, branch, or PR head).
set -euo pipefail
REF="${1:?Usage: $(basename "$0") <status-go-ref>}"
cd vendor/status-go
git fetch --no-tags origin \
'+refs/heads/*:refs/remotes/origin/*' \
'+refs/pull/*/head:refs/remotes/origin/pr/*'
git checkout --detach "${REF}"
git submodule update --init --recursive