From 21b30a441fb7ceced5df86685bb59659a531a549 Mon Sep 17 00:00:00 2001 From: Mutzi Date: Sat, 11 Feb 2023 12:44:02 +0100 Subject: [PATCH] Testing with Jenkins --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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' } }