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
35
36
37
38
39
40
41
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
dir 'jenkins'
reuseNode false
}
}
stages {
stage('Cleanup') {
steps {
sh """
git clean -fdx
"""
}
}
stage('Build (Linux)') {
steps {
sh """
cargo test
"""
}
}
stage('Build (Windows 32-bit)') {
steps {
sh """
export RUSTFLAGS="-C panic=abort"
cargo build --target i686-pc-windows-gnu
"""
}
}
stage('Build (Windows 64-bit)') {
steps {
sh """
cargo build --target x86_64-pc-windows-gnu
"""
}
}
}
}