Replies: 6 comments 5 replies
-
|
The GitHub Actions runner images don’t always use the latest vcpkg release. If you want to always get the latest version (or a specific release) of vcpkg, you need to install it manually in your workflow, for example: This way you’re not dependent on the runner image update cycle. |
Beta Was this translation helpful? Give feedback.
-
|
The vcpkg version in the runner images is typically pinned to a specific commit maintained by the GitHub Actions/runner-images team. They periodically update it based on stability testing and compatibility with the most widely used packages.
|
Beta Was this translation helpful? Give feedback.
-
|
Hey @miriameng! 👋 I am from Runner Images team. There is such a moment here. When assembling an image, we always use the latest available version of the package. This is achieved in the following way: each time the installation occurs from the current state of the repository. For example, here is a simple installer script that we use for Ubuntu: https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/build/install-vcpkg.sh But due to our release cycle (the planned release of updates is weekly), there is always a possibility that by the time of launch the repository has already been updated. Let's consider in more detail: we built the image on Monday, the deployment was completed on Thursday, your task was completed on Saturday, and at this time Unfortunately, we cannot update the version on the fly, since the image is a fairly monolithic structure. Because of this, we recommend that if necessary, using a guaranteed latest version, you update the package yourself in runtime. |
Beta Was this translation helpful? Give feedback.
-
|
The vcpkg version on GitHub-hosted runner images isn't 'live' — it's pinned at the time the runner image is built.
If you need the very latest vcpkg version in your workflow:
|
Beta Was this translation helpful? Give feedback.
-
|
Easy Steps to Manage vcpkg Version in GitHub Actions
This is pinned to a commit fixed at the time the image was built. Suitable for stable and reproducible builds.
Add a step in your workflow to clone the vcpkg repository. Bootstrap vcpkg as needed. This approach won't interfere with preinstalled tools on the runner. Example workflow snippet to install latest vcpkg manually:
This manual installation ensures you are always using the latest or a chosen commit of vcpkg independently of the runner image update cycle. This method is commonly recommended especially when you want to keep up with new releases or avoid issues arising from mismatched versions, like those caused by Dependabot updates to the vcpkg baseline. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
Actions Runner Image
Discussion Details
Currently seeing "Vcpkg (build from commit b1b19307e2)", how is this determined? Is it possible for the runner images to always pick up the latest vcpkg release?
Beta Was this translation helpful? Give feedback.
All reactions