feat update Jenkinsfile

This commit is contained in:
tqcq 2024-08-05 16:04:06 +08:00 committed by tqcq
parent 966948c66b
commit 06d1042adb

67
Jenkinsfile vendored
View File

@ -10,31 +10,54 @@ pipeline {
} }
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
cleanWs() cleanWs()
checkout scm checkout scm
}
} }
}
stage('Configure') { stage('BuildAndTest') {
steps { matrix {
sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON' agent {
docker {
image 'art.uocat.com/tqcq/cross:v1.0.1'
}
}
axes {
axis {
name 'BUILD_TYPE'
values 'Debug', 'Release'
}
axis {
name 'TOOLCHAIN'
values 'aarch64-linux-gnu', 'arm-linux-gnueabihf', 'arm-linux-gnueabi', 'host.gcc-m32', 'mips64el-linux-gnuabi64', 'mips-linux-gnu', 'riscv64-linux-gnu'
}
}
} }
}
stage('Build') { stages {
steps { stage('Configure') {
sh 'cmake --build build --target all -- -j`nproc --ignore=4`' steps {
} sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON'
} }
stage('Test') { }
steps { stage('Build') {
sh 'cd build && ctest --output-on-failure -j `nproc --ignore=4`' steps {
} sh 'cmake --build build --target all -- -j`nproc --ignore=4`'
} }
stage('Benchmark') { }
steps { stage('Test') {
sh 'cd build && ./bin/tile_bm_all' steps {
sh 'cd build && ctest --output-on-failure -j `nproc --ignore=4`'
}
}
stage('Benchmark') {
steps {
sh 'cd build && ./bin/tile_bm_all'
}
}
} }
} }
} }