What is the run-vcpkg@v11 action?
mainThe run-vcpkg@v11 action sets up (and optionally runs) vcpkg to install packages specified in a vcpkg.json manifest file.
Key features include:
- Automatic Binary Caching: Leverages vcpkg's Binary Caching to store artifacts in the GitHub Action cache, ensuring packages are built only once. You can customize this via the
VCPKG_BINARY_SOURCESenvironment variable. - Log Collection: Automatically dumps
CMake(e.g.,CMakeOutput.log) andvcpkglogs into the workflow output. Use thelogCollectionRegExpsinput to customize which logs are collected. - Error Annotation: Automatically parses and reports errors from
CMake,vcpkg,gcc,clang, andmsvcas contextual annotations in the GitHub workflow summary. - Executable Caching: Can cache the vcpkg executable and data files (disabled by default via
doNotCache) to speed up runs, which is particularly useful on platforms like ARM where prebuilt binaries might not be served.