updates Jenkinsfile

This commit is contained in:
Eyck-Alexander Jentzsch 2024-07-11 09:41:06 +02:00
parent ab4a0eeb6e
commit fa1c960247
1 changed files with 52 additions and 37 deletions

73
Jenkinsfile vendored
View File

@ -23,49 +23,64 @@ pipeline {
} }
} }
stages { stages {
stage("Checkout TGC-ISS"){ stage("Checkout TGC-Compliance and TGC-GEN"){
steps { steps {
checkout_project("https://git.minres.com/TGFS/TGC-ISS.git", "develop") dir("TGC-COMPLIANCE"){
checkout_project("https://git.minres.com/TGFS/TGC-COMPLIANCE.git", "master")
}
dir("TGC-GEN"){
checkout_project("https://git.minres.com/TGFS/TGC-GEN.git", "develop")
} }
} }
stage("build TGC-ISS"){ }
stage("generate cores and build TGC-ISS"){
steps { steps {
sh 'TGC-COMPLIANCE/scripts/generate_all -o dbt-rise-tgc'
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("Checkout TGC-Compliance"){ stage('ACT 32bit') {
matrix {
axes {
axis {
name 'CORE'
values 'TGC5A', 'TGC5B', 'TGC5C', 'TGC5D', 'TGC5E'
}
axis {
name 'BACKEND'
values 'interp', 'llvm', 'tcc', 'asmjit'
}
}
stages {
stage('Run riscof') {
steps { steps {
dir("TGC-COMPLIANCE"){ sh "mkdir ${BACKEND}"
checkout_project("https://git.minres.com/TGFS/TGC-COMPLIANCE.git", "master") sh "python3 TGC-COMPLIANCE/run_act.py -core ${CORE} -sim build/dbt-rise-tgc/tgc-sim -w ${BACKEND} --local --backend ${BACKEND}"
} }
} }
} }
stage("Test backends"){ }
parallel { }
stage("Test interp") { stage('ACT 64bit') {
matrix {
axes {
axis {
name 'CORE'
values 'TGC6B', 'TGC6C', 'TGC6D', 'TGC6E'
}
axis {
name 'BACKEND'
values 'interp', 'llvm', 'asmjit'
}
}
stages {
stage('Run riscof') {
steps { steps {
sh "mkdir interp" sh "mkdir ${BACKEND}"
sh "python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim build/dbt-rise-tgc/tgc-sim -w interp --local --backend interp" sh "python3 TGC-COMPLIANCE/run_act.py -core ${CORE} -sim build/dbt-rise-tgc/tgc-sim -w ${BACKEND} --local --backend ${BACKEND}"
} }
}
stage("Test tcc") {
steps {
sh "mkdir tcc"
sh "python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim build/dbt-rise-tgc/tgc-sim -w tcc --local --backend tcc"
}
}
stage("Test asmjit") {
steps {
sh "mkdir asmjit"
sh "python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim build/dbt-rise-tgc/tgc-sim -w asmjit --local --backend asmjit"
}
}
stage("Test llvm") {
steps {
sh "mkdir llvm"
sh "python3 TGC-COMPLIANCE/run_act.py -core TGC5C -sim build/dbt-rise-tgc/tgc-sim -w llvm --local --backend llvm"
} }
} }
} }