ci: Begin CI Pipeline
dustin/mqttmarionette/pipeline/head This commit looks good
Details
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
parent
4156a10685
commit
e53c147dfa
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
cargo build --release
|
||||
|
||||
ln -sr target/release $(uname -m)
|
Loading…
Reference in New Issue