jenkinsfile: automatically install rust target
This commit is contained in:
1 parent
518e003185
commit
9d3b028ce4
1 file changed
+17
Vendored
+17
@@ -31,6 +31,23 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
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') {
|
stage('Download GCC toolchain') {
|
||||||
when {
|
when {
|
||||||
expression {
|
expression {
|
||||||
|
|||||||
Reference in new issue
Block a user