diff --git a/Jenkinsfile b/Jenkinsfile index 64baedc..b2adb9d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,12 @@ pipeline { agent { docker { image 'rust:alpine' } } + environment { + RUSTFLAGS = '-C target-feature=+crt-static -C link-self-contained=yes -C link-arg=-s' + } steps { - sh 'cargo build --release' + sh 'apk add pkgconf musl-dev curl' + sh 'cargo build --release --target x86_64-unknown-linux-musl' sh 'ls -la' } }