Compare commits

...

1 Commits

Author SHA1 Message Date
Dustin 4b802f6267 ci: Begin CI pipeline
mqttdpms/pipeline/head There was a failure building this commit Details
2022-05-22 13:18:16 -05:00
2 changed files with 61 additions and 0 deletions

13
ci/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM rust:slim
RUN apt-get update && \
apt-get install -y \
cmake \
git
libssl-dev \
libx11-dev \
libxext-dev \
pkg-config \
&& \
apt-get clean && \
rm -rf /var/cache/apt /var/lib/apt

48
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,48 @@
pipeline {
agent none
stages {
stage ('Build') {
parallel {
stage('Build: x86_64') {
agent {
dockerfile {
label 'x86_64'
dir 'ci'
}
}
steps {
sh 'cargo build --release'
}
post {
success {
dir('target') {
archiveArtifacts 'release/mqttdpms'
}
}
}
}
stage('Build: aarch64') {
agent {
dockerfile {
label 'aarch64'
dir 'ci'
}
}
steps {
sh 'cargo build --release'
}
post {
success {
dir('target') {
archiveArtifacts 'release/mqttdpms'
}
}
}
}
}
}
}
}