This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
forked from efabless/OpenLane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
94 lines (84 loc) · 2.89 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
94
// 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("Setup") {
steps {
sh 'python3 -m pip install --user pyyaml click';
sh 'docker system prune -a -f';
}
}
stage("Checkout") {
steps {
checkout([$class: "GitSCM",
branches: [[name: "*/master"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanBeforeCheckout']],
submoduleCfg: [],
userRemoteConfigs: [[credentialsId: "openroad-ci", url: "https://github.com/The-OpenROAD-Project/OpenLane"]]
]);
}
}
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 Docker image with openroad/master') {
steps {
sh 'make -C docker build-openroad_app';
}
}
stage('Merge Docker images') {
steps {
sh 'make -C docker merge';
}
}
stage('Run Tests') {
matrix {
axes {
axis {
name 'DESIGN';
// designs disabled "aes128", "chacha", "ldpcenc", "sha512", "des";
values "aes", "aes_cipher", "aes_core", "APU", "blabla", "BM64", "digital_pll_sky130_fd_sc_hd", "genericfir", "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_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',
);
}
}
}