2024-07-18 17:57:55 +08:00
|
|
|
pipeline {
|
2024-07-19 00:21:42 +08:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'tqcq/cross'
|
|
|
|
}
|
|
|
|
}
|
2024-07-19 01:12:51 +08:00
|
|
|
|
|
|
|
options {
|
|
|
|
skipDefaultCheckout(true)
|
|
|
|
}
|
|
|
|
|
2024-07-18 17:57:55 +08:00
|
|
|
stages {
|
2024-07-19 01:12:51 +08:00
|
|
|
stage("Checkout") {
|
2024-07-19 01:14:33 +08:00
|
|
|
steps {
|
|
|
|
cleanWs()
|
|
|
|
checkout scm
|
|
|
|
}
|
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 00:56:29 +08:00
|
|
|
stage('Build'){
|
2024-07-18 17:57:55 +08:00
|
|
|
steps {
|
2024-07-19 00:56:29 +08:00
|
|
|
sh 'cmake --build --target all -- -j`nproc --ignore=4`'
|
2024-07-18 17:57:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
|
|
|
steps {
|
|
|
|
sh 'echo publish'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|