- You should have conan and Xcode/Visual Studio C++ SDK to build and test the package
To create the package using provided version in local cache and test it:
conan create . -s build_type=Debug -s compiler.cppstd=17 --build missing --version 4.1.1
# for conan 1.x, the syntax
conan create . 4.1.1@ -s build_type=Debug -s compiler.cppstd=17 --build missing
# build using an option
conan create . 4.1.1@ -o behaviortree.cpp:with_sqlite_logging=True -s build_type=Debug -s compiler.cppstd=17 --build missing
You can add a version into the package and test it by following instructions above. Then, conandata.yml
file should be changed regarding the new version.
- Add the version under sources. To do that you should provide a URL and its sha256 cheksum. To get the checksum, please download target file and then:
# Linux sha256sum BehaviorTree.CPP-x.x.x.tar.gz # MacOS shasum -a 256 BehaviorTree.CPP-x.x.x.tar.gz # Windows Get-fileHash .\BehaviorTree.CPP-x.x.x.tar.gz
- Create patches if needed and add them under
patches
key inconandata.yml
- To make the version compilable by
conan-center-io
ci, add the version intoconfig.yml
in the recipe.