different agents for different stages

This commit is contained in:
Eyck-Alexander Jentzsch 2024-07-11 10:14:46 +02:00
parent c99a7982b7
commit 21ca5aee7a
1 changed files with 48 additions and 48 deletions

96
Jenkinsfile vendored
View File

@ -16,12 +16,6 @@ void checkout_project(String repoUrl, String branch = 'develop') {
} }
pipeline { pipeline {
agent {
docker {
image 'git.minres.com/tooling/riscof_sail:latest'
args '-e CONAN_USER_HOME=/var/jenkins_home/workspace/riscof_sail'
}
}
stages { stages {
stage("Checkout TGC-Compliance and TGC-GEN"){ stage("Checkout TGC-Compliance and TGC-GEN"){
steps { steps {
@ -33,58 +27,64 @@ pipeline {
} }
} }
} }
stage("generate cores "){ stage("generate cores and build TGC-ISS"){
agent {docker { image 'ubuntu-riscv' } } agent {docker { image 'ubuntu-riscv' }}
steps { steps {
sh 'TGC-GEN/scripts/generate_all.sh -o dbt-rise-tgc' sh 'TGC-GEN/scripts/generate_all.sh -o dbt-rise-tgc'
}
}
stage("build TGC-ISS"){
steps {
sh 'conan profile new default --detect --force' sh 'conan profile new default --detect --force'
sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWITH_ASMJIT=ON -DWITH_TCC=ON -DWITH_LLVM=ON' sh 'cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DWITH_ASMJIT=ON -DWITH_TCC=ON -DWITH_LLVM=ON'
sh 'cmake --build build -j' sh 'cmake --build build -j'
} }
} }
stage('ACT 32bit') { stage{
matrix { agent {
axes { docker {
axis { image 'git.minres.com/tooling/riscof_sail:latest'
name 'CORE' args ' -e CONAN_USER_HOME=/var/jenkins_home/workspace/riscof_sail'
values 'TGC5A', 'TGC5B', 'TGC5C', 'TGC5D', 'TGC5E' }
} }
axis { stages {
name 'BACKEND' stage('ACT 32bit') {
values 'interp', 'llvm', 'tcc', 'asmjit' matrix {
} axes {
} axis {
stages { name 'CORE'
stage('Run riscof') { values 'TGC5A', 'TGC5B', 'TGC5C', 'TGC5D', 'TGC5E'
steps { }
sh "mkdir ${BACKEND}" axis {
sh "python3 TGC-COMPLIANCE/run_act.py -core ${CORE} -sim build/dbt-rise-tgc/tgc-sim -w ${BACKEND} --local --backend ${BACKEND}" name 'BACKEND'
values 'interp', 'llvm', 'tcc', 'asmjit'
}
}
stages {
stage('Run riscof') {
steps {
sh "mkdir ${BACKEND}"
sh "python3 TGC-COMPLIANCE/run_act.py -core ${CORE} -sim build/dbt-rise-tgc/tgc-sim -w ${BACKEND} --local --backend ${BACKEND}"
}
}
} }
} }
} }
} stage('ACT 64bit') {
} matrix {
stage('ACT 64bit') { axes {
matrix { axis {
axes { name 'CORE'
axis { values 'TGC6B', 'TGC6C', 'TGC6D', 'TGC6E'
name 'CORE' }
values 'TGC6B', 'TGC6C', 'TGC6D', 'TGC6E' axis {
} name 'BACKEND'
axis { values 'interp', 'llvm', 'asmjit'
name 'BACKEND' }
values 'interp', 'llvm', 'asmjit' }
} stages {
} stage('Run riscof') {
stages { steps {
stage('Run riscof') { sh "mkdir ${BACKEND}"
steps { sh "python3 TGC-COMPLIANCE/run_act.py -core ${CORE} -sim build/dbt-rise-tgc/tgc-sim -w ${BACKEND} --local --backend ${BACKEND}"
sh "mkdir ${BACKEND}" }
sh "python3 TGC-COMPLIANCE/run_act.py -core ${CORE} -sim build/dbt-rise-tgc/tgc-sim -w ${BACKEND} --local --backend ${BACKEND}" }
} }
} }
} }