dotfiles/Jenkinsfile

18 lines
495 B
Plaintext
Raw Normal View History

2023-02-11 11:21:44 +00:00
pipeline {
agent none
2023-02-11 11:22:46 +00:00
stages {
stage('Build') {
agent {
docker { image 'rust:alpine' }
}
2023-02-11 11:44:02 +00:00
environment {
RUSTFLAGS = '-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s'
}
2023-02-11 11:22:46 +00:00
steps {
2023-02-11 11:44:02 +00:00
sh 'apk add pkgconf musl-dev curl'
sh 'cargo build --release --target x86_64-unknown-linux-musl'
2023-02-11 11:22:46 +00:00
sh 'ls -la'
}
2023-02-11 11:21:44 +00:00
}
}
}