conan-io / conan-package-tools

Conan Package Tools. Helps with massive package creation and CI integration (Travis CI, Appveyor...)
MIT License
165 stars 70 forks source link

Recommended aproach for building external conan recipes in CI #480

Open annulen opened 4 years ago

annulen commented 4 years ago

I'd like to build a package from Conan Center in CI with custom choice of CONAN_OPTIONS and compilers. Is it there any easy way to make CPT build, test, and upload binaries of that external package instead of "local" conanfile.py? Or is there any other recommended approach for this case?

uilianries commented 4 years ago

CPT is used to generate a matrix of builds. If you are looking for a set of builds, I strongly recommend using lockfiles instead: https://docs.conan.io/en/latest/versioning/lockfiles.html#how-to-use-lockfiles-in-ci

annulen commented 4 years ago

I'm using CPT to generate matrix of builds, for example in my fork of ICU recipe I use this matrix for ICU, and this one for libxml2. Now both packages are in Conan Center and it's not possible to synchronize with upstream by rebasing my branch, so I wonder what migration path should be chosen.

uilianries commented 4 years ago

In this case no. CPT is projected for local builds. You will need a script to download all files, build and upload.