-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
34 lines (34 loc) · 1.25 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
pipeline {
agent none
stages {
stage('Linux Build') {
agent {
docker { image 'ekidd/rust-musl-builder' }
}
steps {
sh 'rustup default stable'
sh 'rustup target add x86_64-unknown-linux-musl'
sh 'rustup target add i686-unknown-linux-musl'
sh 'sh scripts/build_linux.sh'
archiveArtifacts artifacts: 'target/x86_64-unknown-linux-musl/release/yals', fingerprint: true
archiveArtifacts artifacts: 'target/i686-unknown-linux-musl/release/yals', fingerprint: true
}
}
// stage('Windows Build') {
// agent {
// docker { image 'tomaka/rust-mingw-docker' }
// }
// steps {
// sh 'rustup default stable-x86_64-pc-windows-gnu'
// sh 'rustup target add x86_64-pc-windows-gnu'
// sh 'rustup component add cargo'
// sh 'rustup default stable-i686-pc-windows-gnu'
// sh 'rustup target add i686-pc-windows-gnu'
// sh 'rustup component add cargo'
// sh 'sh scripts/build_windows.sh'
// archiveArtifacts artifacts: 'target/x86_64-pc-windows-gnu/release/yals.exe', fingerprint: true
// archiveArtifacts artifacts: 'target/i686-pc-windows-gnu/release/yals.exe', fingerprint: true
// }
// }
}
}