Action not correctly caching dependencies when using triplet-overlay
See original GitHub issueI’m using run-vcpkg to build a library that I need to link statically to libprotobuf (but with DYNAMIC_CRT), so I need to use an overlay to get the right version.
This however seems to trip the caching. Even after consecutive successful runs the Windows job does a full rebuild of all the packages, while the Linux job (which doesn’t use an overlay) is correctly retrieving them.
On the Post Restore from cache and install vcpkg step I’m seeing this:
Post job cleanup.
Save vcpkg and its artifacts to cache
Cache hit occurred on the cache key 'localGitId=-574880384-args=42-os=1553167195-appendedKey=411780070-triplet=1258145250', saving cache is skipped.
Running VCPKG locally correctly detects the package, that’s why I assume is something in the Action.
Thanks in advance for any pointers.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Caching dependencies to speed up workflows - GitHub Docs
To cache dependencies for a job, you can use GitHub's cache action. The action creates and restores a cache identified by a unique...
Read more >Cache is not being correctly loaded in Github actions
This works, by 'works' I mean that it loads the cache and skip the 'Install dependencies step' and it restores the ~/.cache/pip directory....
Read more >Caching Dependencies to SPEED UP Workflows in GitHub ...
GitHub Actions caching is not complex, let's take a look at it in 3 minute. We will see how to add cache to...
Read more >Caching dependencies to speed up workflows in GitHub Actions
To cache dependencies for a job, you'll need to use GitHub's cache action. The action retrieves a cache identified by a unique key....
Read more >Caching Dependencies on GitHub Workflows - Rupesh Tiwari
Learn how to cache workflow dependencies on GitHub. ... We will use actions/cache@v2 to save and restore npm dependencies.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lukka - Thanks so much for the response
Nice catch with the
clients/cpp
path - however that is something we do need in the ‘real’ repo (It was there due to eager copy pasting).On the repro repository: https://github.com/sysnet-ai/vcpkg_caching_test seems like the last update helped (Moving to v7 and removing the extra path).
I bumped to v7 and it seems like our main job is now running with correct caching.
Thanks again, closing this out.
@sysnet-ai also, please use the latest version, i.e.,
lukka/run-vcpkg@v7
, and let me know as always, thanks!