43 lines
920 B
Groovy
43 lines
920 B
Groovy
pipeline {
|
|
agent {
|
|
docker {
|
|
image 'art.uocat.com/tqcq/cross:v1.0.1'
|
|
}
|
|
}
|
|
|
|
options {
|
|
skipDefaultCheckout(true)
|
|
}
|
|
|
|
stages {
|
|
stage('Checkout') {
|
|
steps {
|
|
cleanWs()
|
|
checkout scm
|
|
}
|
|
}
|
|
|
|
stage('Configure') {
|
|
steps {
|
|
sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
sh 'cmake --build build --target all -- -j`nproc --ignore=4`'
|
|
}
|
|
}
|
|
stage('Test') {
|
|
steps {
|
|
sh 'cd build && ctest --output-on-failure -j `nproc --ignore=4`'
|
|
}
|
|
}
|
|
stage('Benchmark') {
|
|
steps {
|
|
sh 'cd build && ./bin/tile_bm_all'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|