Setting doNotCacheOnWorkflowFailure: true disables caching entirely (?)
See original GitHub issueI use run-vcpkg action from my own compisite action like this: https://github.com/equeim/action-setup-vcpkg-msvc/blob/master/action.yml
There I set doNotCacheOnWorkflowFailure input to true. Then, when job is completed successfully, post action from run-vcpkg says that:
Save vcpkg and its artifacts into GitHub service cache
Caching is disabled, saving cache is skipped.
AFAIK, it can happen only if doNotCache input is true and it false by default.
There is log when run-vcpkg is invoked:
Run lukka/run-vcpkg@v10
with:
vcpkgGitCommitId: dd42206f86a7b9f7747ccb63fa0e36baaab5fa1e
appendedCacheKey: d817028e1760c31609f9e53637b20f8ddde03229611a26d440364f0eceb7219e
doNotCacheOnWorkflowFailure: true
vcpkgDirectory: D:\a\libtremotesf\libtremotesf/vcpkg
runVcpkgInstall: false
vcpkgGitURL: https://github.com/microsoft/vcpkg.git
doNotUpdateVcpkg: false
doNotCache: false
vcpkgJsonGlob: **/vcpkg.json
vcpkgJsonIgnores: ['**/vcpkg/**']
runVcpkgFormatString: [`install`, `--recurse`, `--clean-after-build`, `--x-install-root`, `$[env.VCPKG_INSTALLED_DIR]`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`]
useShell: true
logCollectionRegExps: \s*"(.+CMakeOutput\.log)"\.\s*;\s*"(.+CMakeError\.log)"\.\s*;\s*(.+out\.log)\s*;\s+(.+err\.log)\s*;\s*(.+vcpkg.+\.log)\s*
jobStatus: success
Could it be related to the fact that I use it from composite action?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to disable your browser cache - Web Instinct
Click on the Network tab, then check the box to Disable cache. Disable Cache in Google Chrome Developer Tools. You can then close...
Read more >Disabling the Write-Behind Caching Setting Does Not Disable ...
To Completely Disable Write-Behind Caching. Right-click My Computer, and then click Properties. Click File System, and then click the Removable Disk tab.
Read more >Disabling Chrome cache for website development
The Chrome DevTools can disable the cache. Right-click and choose Inspect Element to open the DevTools. Or use one of the following keyboard...
Read more >What does the DisableBrowserCaching setting actually disable?
I have read all of the docs and I have done a little research on the Cache-Control: no-cache, no-store Pragma: no-cache headers, but...
Read more >Configure Site Caching - Salesforce Help
To disable caching of an individual publicly available Visualforce page when this setting is enabled, set the page's boolean cache attribute to false...
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
Hmm. I took another look at the action code, and it looks like that constructor arguments for VcpkgPostAction class are in the wrong order: https://github.com/lukka/run-vcpkg/blob/45ca959f1f67368916141570f6ab4bd0b86f6620/src/post-action.ts#L26 and https://github.com/lukka/run-vcpkg/blob/45ca959f1f67368916141570f6ab4bd0b86f6620/src/vcpkg-post-action.ts#L14 (doNotCacheOnWorkflowFailure and doNotCache are mixed up).
@equeim right, it was removed because the detection of the job status in the post action never worked. Please refer to #115 for a similar discussion.
The way it works now is as follows:
Opened #128 about solving this.