jenkinsfile: automatically install rust target

This commit is contained in:
Nils Andreas Svee committed 2022-11-27 15:25:53 +01:00
1 parent 518e003185
commit 9d3b028ce4
1 file changed
+17
Vendored
+17
View File
@@ -31,6 +31,23 @@ pipeline {
}
stages {
stage('Install Rust target') {
when {
expression {
def rs = sh(script: "rustup target list --installed | grep ${TARGET}", returnStatus: true)
if (res > 0) {
return true
} else {
return false
}
}
}
steps {
sh "rustup target add ${TARGET}"
}
}
stage('Download GCC toolchain') {
when {
expression {