switches to Conan 2

This commit is contained in:
2024-07-06 10:07:51 +02:00
parent 53ed979fa3
commit e8def0bb86
13 changed files with 605 additions and 38 deletions

11
Jenkinsfile vendored
View File

@ -31,16 +31,17 @@ void checkout_project() {
void setup_conan() {
sh'''
pip3 install --user "conan<2.0" pyucis
python3 -mvenv .venv
. .venv/bin/activate
pip3 install -r requirements.txt
conan profile new default --detect --force
conan remote list | grep minres > /dev/null
[ $? ] || conan remote add minres https://git.minres.com/api/packages/Tooling/conan
'''
}
void build_n_test_project() {
sh'''
cmake -S . -B build
. .venv/bin/activate
cmake -S . -B build --preset Release
cmake --build build -j12
cmake --build build --target test
'''
@ -97,7 +98,7 @@ pipeline {
stage('Setup') { steps { setup_conan() }}
stage('Build & check format') { steps {
sh'''
cmake -S . -B build
cmake -S . -B build --preset Release
cmake --build build --target format-check
'''
}}