tencent cloud

Feedback

Conan Repository

Last updated: 2022-03-30 10:08:16

    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
    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 avaliable.

    7x24 Phone Support