wip: ci
dustin/mqttmarionette/pipeline/head There was a failure building this commit
Details
dustin/mqttmarionette/pipeline/head There was a failure building this commit
Details
parent
4156a10685
commit
d2f4bd8dc3
|
@ -0,0 +1,57 @@
|
|||
// vim: set sw=4 ts=4 sts=4 et :
|
||||
pipeline {
|
||||
agent none
|
||||
|
||||
stages {
|
||||
parallel {
|
||||
stage('Build x86_64') {
|
||||
agent {
|
||||
kubernetes {
|
||||
containers: [
|
||||
containerTemplate(
|
||||
name: 'build',
|
||||
image: 'docker.io/library/rust:1.65',
|
||||
),
|
||||
]
|
||||
nodeSelector 'kubernetes.io/arch=amd64'
|
||||
defaultContainer 'build'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'cargo build --release'
|
||||
sh 'ln -sr target/release $(uname -m)'
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts 'x86_64/mqttmarionette'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build aarch64') {
|
||||
agent {
|
||||
kubernetes {
|
||||
containers: [
|
||||
containerTemplate(
|
||||
name: 'build',
|
||||
image: 'docker.io/library/rust:1.65',
|
||||
),
|
||||
]
|
||||
nodeSelector 'kubernetes.io/arch=arm64'
|
||||
defaultContainer 'build'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'cargo build --release'
|
||||
sh 'ln -sr target/release $(uname -m)'
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts 'aarch64/mqttmarionette'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue