tencent cloud

All product documents
Conan Repository
Last updated: 2024-01-03 11:31:03
Conan Repository
Last updated: 2024-01-03 11:31:03
This document describes how to store Conan artifacts in CODING-AR for centralized artifact management and version control. The following sections introduce how to create an artifact, configure authentication, and pull and push artifacts.

Open CODING-AR

1. Log in to the CODING Console and click Use Now to go to CODING page.
2. Click

in the upper-right corner to open the project list page and click a project icon to open the project.
3. In the menu on the left, click Artifact Management.

Preparations

Note:
Before you begin:
Install Python3.
Create an artifact repository (see Basic Operations).
Select Conan as the repository type.

Install Conan

Python 3.5 or later is required to install Conan using pip.
pip install

Install Conan with brew.
brew install conan


Create a Conan Package

Create a local demo directory.
mkdir mypkg && cd mypkg

Create a demo project.
conan new hello/0.1 -t

Build a binary package for the project.
conan create . demo/testing

If an error message /bin/sh: cmake: command not found is displayed, run the following command to install cmake:
$ pip3 install cmake
# or
$ brew install cmake


Configure Authentication Information

You can select manual or automatic configuration. Automatic configuration is used in the following example.
Click Generate configuration from access token in "Guide". A personal token will be generated as your access credential. You can manage your personal token in Personal Account Settings > Access Token.

Run the commands as prompted.


Push an Artifact

Run the command in the guide. Replace the variables with the name and version of the artifact to be pushed.
conan upload [package name]/[custom version number] --all -r=conan-go


Pull an Artifact

Run the pull command in the guide.
conan install [package name]/[custom vesion number]@ -r conan-go

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon