question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Action not correctly caching dependencies when using triplet-overlay

See original GitHub issue

I’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:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sysnet-aicommented, Jul 19, 2021

@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.

0reactions
lukkacommented, Jul 16, 2021

@sysnet-ai also, please use the latest version, i.e., lukka/run-vcpkg@v7, and let me know as always, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found