Files
sqm-autorate-rust/Jenkinsfile
T
Nils Andreas Svee cccd3a3966 ci: remove mold and debug statements
Removes mold integration and debug statements from the CI pipeline. This simplifies the build process and improves clarity by removing unnecessary tools and logs.
2026-02-21 13:57:47 +07:00

49 lines
1.1 KiB
Groovy

pipeline {
agent any
stages {
stage('Main') {
matrix {
axes {
axis {
name 'TARGET'
values 'x86_64-musl', 'i686-musl', 'arm-musleabi', 'arm-musleabihf', 'armv7-musleabi', 'armv7-musleabihf', 'aarch64-musl', 'mips-musl', 'mipsel-musl', 'mips64-musl', 'mips64el-musl', 'mips64-muslabi64', 'mips64el-muslabi64', 'riscv64gc-musl'
}
}
agent {
docker {
image "ghcr.io/rust-cross/rust-musl-cross:${TARGET}"
alwaysPull true
}
}
stages {
stage('Build') {
steps {
sh '''
export CARGO_HOME="$(pwd)/.cargo"
cargo build \
--release
'''
}
}
stage('Archive artifact') {
steps {
sh '''
ls -l target
find -name sqm-autorate-rust
'''
/*dir("target/${TARGET}/release") {
sh "cp -v sqm-autorate-rust sqm-autorate-rust-${TARGET}"
archiveArtifacts artifacts: "sqm-autorate-rust-${TARGET}", fingerprint: true, onlyIfSuccessful: true
}*/
}
}
}
}
}
}
}