jumboly/Setup vcpkg NuGet Cache
Configure vcpkg to use a GitHub Packages NuGet feed as a binary cache. Pins vcpkg to the SHA from your vcpkg.json builtin-baseline (or to an explicit override).
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| token | GitHub token with packages:write (for publish) or packages:read (for consume-only). secrets.GITHUB_TOKEN works when publishing within the same owner as the calling repo. Cross-owner publish or read requires a Personal Access Token. | yes | — |
| mode | `read` (consumer-only) or `readwrite` (publisher). | no | readwrite |
| vcpkg-commit | Explicit microsoft/vcpkg commit SHA to pin the local checkout to. Overrides `manifest-path` auto-detection. Tags or branch names also work, but commit SHAs are recommended for reproducibility. Leave empty to read the SHA from vcpkg.json's `builtin-baseline` field. | no | "" |
| manifest-path | Path to vcpkg.json. The action reads its `builtin-baseline` field as the pin SHA when `vcpkg-commit` is not set. Default: `./vcpkg.json`. | no | ./vcpkg.json |
| feed-url | NuGet feed URL. Default: GitHub Packages of the calling repository owner (https://nuget.pkg.github.com/<owner>/index.json). | no | "" |
| feed-name | Internal NuGet source key. Used by `nuget sources add`. | no | github-packages |
| vcpkg-root | Path to vcpkg installation. Default resolution: $VCPKG_INSTALLATION_ROOT, then $VCPKG_ROOT, then C:/vcpkg. | no | "" |
Outputs
| name | description |
|---|---|
| feed-url | Resolved feed URL. |
| vcpkg-root | Resolved vcpkg root path. |
| vcpkg-commit | SHA the vcpkg checkout was pinned to (auto-resolved or from input). |