hunter_upload_passwordΒΆ

This module helps to set uploading parameters for binary cache server.

If you want to use GitHub repository https://github.com/forexample/hunter-cache as a cache server and do uploads using bot cpp-pm-bot this can be expressed by code:

# ~/.config/Hunter/passwords.cmake

hunter_upload_password(
    REPO_OWNER "forexample"
    REPO "hunter-cache"
    USERNAME "cpp-pm-bot"
    PASSWORD "very-secured-github-token-here"
)

Note that module is file with CMake code, so all regular commands available. E.g. you can read password from environment variable:

# ~/.config/Hunter/passwords.cmake

hunter_upload_password(
    REPO_OWNER "forexample"
    REPO "hunter-cache"
    USERNAME "cpp-pm-bot"
    PASSWORD "$ENV{GITHUB_USER_PASSWORD}"
)