forked from The-OpenROAD-Project/OpenLane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
93 lines (85 loc) · 2.73 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// This file is used for internal testing by the OpenROAD team.
pipeline {
agent any;
options {
timeout(time: 8, unit: 'HOURS');
}
environment {
ROUTING_CORES = 32;
}
stages {
stage('Checkout PDKs') {
steps {
sh 'git switch -C main';
sh 'make -j 1 NPROC=1 pdk';
}
}
stage('Build Docker update OpenROAD commit') {
steps {
sh 'PDK_ROOT=$(pwd)/pdks OPENLANE_IMAGE_NAME=efabless/openlane python3 .github/scripts/update_tools.py openroad_app';
}
}
stage('Build OpenROAD Docker image with master branch') {
steps {
sh 'make -C docker build-openroad_app';
}
}
stage('Build Docker OpenLane image with openroad_app master') {
steps {
sh 'make -C docker openlane';
}
}
stage('Run Tests') {
matrix {
axes {
axis {
name 'DESIGN';
values "aes",
"aes_core",
"APU",
"blabla",
"BM64",
"digital_pll_sky130_fd_sc_hd",
"gcd",
"inverter",
"manual_macro_placement_test",
"picorv32a",
"PPU",
"s44",
"salsa20",
"spm",
"usb",
"usb_cdc_core",
"wbqspiflash",
"xtea",
"y_huff",
"zipdiv";
}
}
stages {
stage('Test') {
steps {
script {
stage("${DESIGN}") {
sh "make OPENLANE_DOCKER_TAG=current TEST_DESIGN=${DESIGN} test";
}
}
}
}
}
}
}
}
post {
always {
archiveArtifacts artifacts: "designs/**/*.log, designs/**/openroad_issue_reproducible/**/*";
}
failure {
emailext(
to: '$DEFAULT_RECIPIENTS',
subject: '$DEFAULT_SUBJECT',
body: '$DEFAULT_CONTENT',
);
}
}
}