Comments (14)
Hello - finally had a chance to try. Sadly it looks like it doesn't play well with Manifest mode? Since originally raising this I've swapped to manifest mode and it looks like all my dependencies are being rebuilt at the configure
. Will continue discussion over on #53
from run-vcpkg.
- the cache is stored only on successful workflows. It could be possible to let the user control this behavior by changing
post-if: 'success()'
into an expression which includes a variable controlled indirectly by the user. This is something that needs to be explored since I see no actual examples for doing this. - can you provide the links of the workflow runs' logs, ideally with the ACTION_STEPS_DEBUG set to true ?
from run-vcpkg.
- If you have time to implement something like this I think it could be very useful.
- The workflow is running now.
Previous build that stored a cache is here (didn't have ACTION_STEPS_DEBUG set to true): https://github.com/spinicist/QUIT/actions/runs/145378853
First build (no tag, finds the cache) is here: https://github.com/spinicist/QUIT/actions/runs/145949044
Second build (tag, does not find the cache) is here: https://github.com/spinicist/QUIT/runs/802718822?check_suite_focus=true
If you need the full logs then the 2nd build is going to take 30-40 minutes to finish.
from run-vcpkg.
- agreed.
- the only explanation I can think of is that those are two different workflows, and the cache is scoped per workflow. There is no single mention of this on the documentation though. In fact the cache keys computed by the run-vcpkg action, up to the URLs used by the called actions/cache APIs (i.e. the one at
##[debug]Resource Url:
) are identical in both workflows.
from run-vcpkg.
- Couldn't you just merge the "post" action into the run-vcpkg action itself? I might be missing something, but I don't see why it has to be two separate steps.
from run-vcpkg.
@PazerOP that's right, the restore/save could be done in the same step (i.e. inside the run-vcpkg
action, no need for the post-action for the saving of the cache). The post-action step stem from the original idea was to save the cache only when all the workflow was completed successfully.
from run-vcpkg.
I have a question about cache. The first time my build was successful and cached. But after that, the setup still took 2.5 hours. With the following output:
Restore vcpkg and its artifacts from cache
Cache's key = 'localGitId=2106721475-args=-800282226-os=1553167195-appendedKey=42'.
Running restore-cache
Cache Size: ~973 MB (1020766370 B)
from run-vcpkg.
@Shatur95 you are right that the behavior is unexpected indeed, it is due to the fact that the vcpkgCommitId
must not contain a tag (nor a branch). In your workflow i see a tag being used. Just replace the tag with its resolved commit id and then it will work properly.
The input is properly documented, but probably the action should just error out in case its value is not a commit id.
I'd suggest opening an issue (and what about a PR, that is even better :D ) about improving the management of the vcpkgCommitId
input.
from run-vcpkg.
Thanks for the explanation! Opened #47. I would like to send a PR, but I do not know TS :D
from run-vcpkg.
please verify lukka/run-vcpkg@v5
suits your needs, thanks!
from run-vcpkg.
This is a fantastic change
from run-vcpkg.
Yeah, this is a game changer for using this action, thank you!
from run-vcpkg.
@spinicist closing this issue, let me know if run-vcpkg@v5
satisfied this ask, thanks!
from run-vcpkg.
Other projects are getting in the way of trying this - I will let you know when I finally get a chance but I'm sure it will be good!
from run-vcpkg.
Related Issues (20)
- save-state warning HOT 1
- run-vcpkg's vcpkg.exe no longer being picked up by MSBuild/Visual Studio even with `vcpkg integrate install` HOT 5
- Saving cache is skipped HOT 16
- Defer completely to vcpkg to determine whether a cache is outdated HOT 9
- Ensure the cache content is minimum required
- Need PATH to be set to included libraries created by vcpkg HOT 5
- Help wanted : vcpkg can't unpack oneTBB (Disk Full) HOT 2
- Issues when trying to use the action HOT 11
- VCPKG failing to build library HOT 17
- macos build fail after macos GH hosted runner updates on 16 Feb 2023 - Root cause: missing pkg-config HOT 1
- Saving duplicate cache HOT 2
- Use a separate cache entry for OS independent files HOT 10
- run-vcpkg could turn on/off the cache of vcpkg according to platform (e.g. doNotCache:false on ARM)
- v11 has been published onto the v10 branch HOT 2
- run-vcpkg@v11 requires manually setting environment variables for caching to work HOT 6
- run-vcpkg@v11 does not support prepended/appendedCacheKey HOT 2
- run-vcpkg failing with "dyld: Symbol not found: __ZNKSt3_V214error_category10_M_messageB5cxx11Ei" HOT 4
- One package not cached HOT 6
- About Static Linking HOT 4
- some errors when install package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from run-vcpkg.