tile/Jenkinsfile

68 lines
1.9 KiB
Plaintext
Raw Normal View History

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-08-05 16:18:17 +08:00
image 'tqcq/cross'
label 'v1.0.1'
registryUrl 'https://art.uocat.com/'
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-08-05 16:11:42 +08:00
stage('Checkout') {
steps {
cleanWs()
2024-08-05 16:04:06 +08:00
checkout scm
2024-07-19 01:14:33 +08:00
}
2024-08-05 16:11:42 +08:00
}
2024-07-19 01:12:51 +08:00
2024-08-05 16:04:06 +08:00
stage('BuildAndTest') {
matrix {
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'
}
}
2024-08-05 16:11:42 +08:00
stages {
stage('Configure') {
steps {
sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON'
}
2024-08-05 16:04:06 +08:00
}
2024-08-05 16:11:42 +08:00
stage('Build') {
steps {
sh 'cmake --build build --target all -- -j`nproc --ignore=4`'
}
2024-08-05 16:04:06 +08:00
}
2024-08-05 16:11:42 +08:00
stage('Test') {
steps {
sh 'cd build && ctest --output-on-failure -j `nproc --ignore=4`'
}
2024-08-05 16:04:06 +08:00
}
2024-08-05 16:11:42 +08:00
stage('Benchmark') {
steps {
sh 'cd build && ./bin/tile_bm_all'
}
2024-08-05 16:04:06 +08:00
}
}
2024-07-18 17:57:55 +08:00
}
}
}
}