ci: Begin CI Pipeline
dustin/mqttmarionette/pipeline/head This commit looks good Details

For now, we're only building aarch64 binaries.  The screens I intend to
deploy this on are both Raspberry Pis, and I don't yet have a way to
produce multi-arch container images to provide the build environment.
dev/ci
Dustin 2023-01-10 21:16:20 -06:00
parent 4156a10685
commit e53c147dfa
2 changed files with 64 additions and 0 deletions

59
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,59 @@
// vim: set sw=4 ts=4 sts=4 et :
pipeline {
agent none
stages {
stage('Build') {
parallel {
/*
stage('Build x86_64') {
agent {
kubernetes {
containerTemplate {
name 'build'
image 'git.pyrocufflink.net/containerimages/build/browserhud'
command 'cat'
ttyEnabled true
}
nodeSelector 'kubernetes.io/arch=amd64'
defaultContainer 'build'
}
}
steps {
sh '. ci/build.sh'
}
post {
success {
archiveArtifacts 'x86_64/mqttmarionette'
}
}
}
*/
stage('Build aarch64') {
agent {
kubernetes {
containerTemplate {
name 'build'
image 'git.pyrocufflink.net/containerimages/build/browserhud'
command 'cat'
ttyEnabled true
}
nodeSelector 'kubernetes.io/arch=arm64'
defaultContainer 'build'
}
}
steps {
sh '. ci/build.sh'
}
post {
success {
archiveArtifacts 'aarch64/mqttmarionette'
}
}
}
}
}
}
}

5
ci/build.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/sh
cargo build --release
ln -sr target/release $(uname -m)