fix: let the shell handle the env vars

This commit is contained in:
Nils Andreas Svee committed 2025-05-09 04:48:47 +07:00
1 parent 7489f5ae93
commit c6c4b17ef5
1 file changed
+5 -6
Vendored
+5 -6
View File
@@ -41,21 +41,20 @@ pipeline {
TARGET_ARCH = getArch(GCC_TARGET) TARGET_ARCH = getArch(GCC_TARGET)
CC = "${GCC_TARGET}-gcc" CC = "${GCC_TARGET}-gcc"
LINKER_ENV_KEY = getLinkerEnv(TARGET) LINKER_ENV_KEY = getLinkerEnv(TARGET)
'PATH+CC' = "/opt/${GCC_TARGET}-cross/bin:" PATH_CC = "/opt/${GCC_TARGET}-cross/bin:/home/sdk/.cargo/bin"
'PATH+RUST' = '/home/sdk/.cargo/bin'
RUSTFLAGS = "-C target-feature=+crt-static" RUSTFLAGS = "-C target-feature=+crt-static"
} }
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
sh """ sh '''
printenv export PATH="$PATH_CC:$PATH"
cargo +nightly build \ cargo +nightly build \
-Z build-std=std,panic_abort \ -Z build-std=std,panic_abort \
-Z build-std-features="optimize_for_size" \ -Z build-std-features="optimize_for_size" \
--target ${TARGET} --release --target $TARGET --release
""" '''
} }
} }