wip: ci
dustin/mqttmarionette/pipeline/head Something is wrong with the build of this commit Details

Dustin 2023-01-10 21:16:20 -06:00
parent 4156a10685
commit 0712f1fad4
1 changed files with 60 additions and 0 deletions

60
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,60 @@
// vim: set sw=4 ts=4 sts=4 et :
pipeline {
agent none
stages {
stage('Build') {
parallel {
stage('Build x86_64') {
when {
expression {
return false
}
}
agent {
kubernetes {
containerTemplate {
name 'build'
image 'git.pyrocufflink.net/containerimages/build/browserhud'
}
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 {
containerTemplate {
name 'build'
image 'git.pyrocufflink.net/containerimages/build/browserhud'
}
nodeSelector 'kubernetes.io/arch=arm64'
defaultContainer 'build'
}
}
steps {
sh 'cargo build --release'
sh 'ln -sr target/release $(uname -m)'
}
post {
success {
archiveArtifacts 'aarch64/mqttmarionette'
}
}
}
}
}
}
}