diff --git a/.cargo/config.toml b/.cargo/config.toml index 73f33e3..e69de29 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,4 +0,0 @@ -# Apply mold to all Linux targets EXCEPT MIPS -# MIPS is excluded because mold does not support it. -[target.'cfg(all(target_os = "linux", not(any(target_arch = "mips", target_arch = "mips64"))))'] -rustflags = ["-C", "link-arg=-fuse-ld=mold"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 7a2796f..3a50842 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,14 +2,6 @@ pipeline { agent any stages { - stage('Preparation') { - steps { - sh ''' - mkdir -p .local - curl -L -s https://github.com/rui314/mold/releases/download/v2.40.4/mold-2.40.4-x86_64-linux.tar.gz | tar -xzv --strip-components=1 -C .local/ - ''' - } - } stage('Main') { matrix { axes { @@ -31,14 +23,6 @@ pipeline { steps { sh ''' export CARGO_HOME="$(pwd)/.cargo" - export PATH="$(pwd)/.local/bin:${PATH}" - ls -l /usr/local/musl/bin - $TARGET_CC -v - clang -v - gcc -v - cargo -V - rustc -V - mold -V cargo build \ --release ''' @@ -47,7 +31,10 @@ pipeline { stage('Archive artifact') { steps { - sh 'echo TODO' + 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