2024-07-18 17:57:55 +08:00
|
|
|
pipeline {
|
2024-07-19 10:36:47 +08:00
|
|
|
agent {
|
2024-07-19 01:27:01 +08:00
|
|
|
docker {
|
2024-07-27 12:53:30 +08:00
|
|
|
image 'art.uocat.com/tqcq/cross:v1.0.1'
|
2024-07-19 01:27:01 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-19 01:12:51 +08:00
|
|
|
options {
|
|
|
|
skipDefaultCheckout(true)
|
|
|
|
}
|
|
|
|
|
2024-07-18 17:57:55 +08:00
|
|
|
stages {
|
2024-07-19 10:36:47 +08:00
|
|
|
stage('Checkout') {
|
2024-07-19 01:14:33 +08:00
|
|
|
steps {
|
2024-07-19 10:36:47 +08:00
|
|
|
cleanWs()
|
|
|
|
checkout scm
|
2024-07-19 01:14:33 +08:00
|
|
|
}
|
2024-07-19 01:12:51 +08:00
|
|
|
}
|
|
|
|
|
2024-07-19 00:20:00 +08:00
|
|
|
stage('Configure') {
|
2024-07-18 17:57:55 +08:00
|
|
|
steps {
|
2024-07-19 00:20:00 +08:00
|
|
|
sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON'
|
2024-07-18 17:57:55 +08:00
|
|
|
}
|
|
|
|
}
|
2024-07-19 10:36:47 +08:00
|
|
|
stage('Build') {
|
2024-07-18 17:57:55 +08:00
|
|
|
steps {
|
2024-07-19 01:27:01 +08:00
|
|
|
sh 'cmake --build build --target all -- -j`nproc --ignore=4`'
|
2024-07-18 17:57:55 +08:00
|
|
|
}
|
|
|
|
}
|
2024-07-19 10:36:47 +08:00
|
|
|
stage('Test') {
|
2024-07-18 17:57:55 +08:00
|
|
|
steps {
|
2024-07-19 10:43:44 +08:00
|
|
|
sh 'cd build && ctest --output-on-failure -j `nproc --ignore=4`'
|
2024-07-19 10:36:47 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Benchmark') {
|
|
|
|
steps {
|
|
|
|
sh 'cd build && ./bin/tile_bm_all'
|
2024-07-18 17:57:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|