Comments (4)
I just saw this
Note: since buildtrees, packages and download subdirectories must not be cached, they are excluded by the .artifactignore file generated by the vcpkg-run task.
This answer my first question.
from cppbuildtasks.
Hi @lukka, although .artifactignore excluded some folders, caching in my pipeline still go up to 5GB. Meanwhile installed folder is only roughly 750MB which is a lot smaller. So I think that it will be still be very useful if you have that example done.
Note that restore 5GB cache takes roughly 3 minutes while restore 750MB takes about 25 seconds which is quite a big difference.
from cppbuildtasks.
@JamesYangLim there is room for improvements indeed.
In order to get the content and size of the first level of the cached content, could you run on server the following command just after the cache has been restored:
cd /path/to/vcpkg/root/dir
du -hs *
Also try to change the key's value given to the Cache task, and verify whether the size of the cache is going to be significantly smaller: this could happen if the cache task has been run with no .artifactignore
file in the past (i.e. the cached content is immutable, and if cached once, it wont change unless a different key is being used)
from cppbuildtasks.
@JamesYangLim found the issue and fixed it in #15 ! Thanks for reporting this problem.
from cppbuildtasks.
Related Issues (20)
- Allow mutliple triplets for install command HOT 3
- run-cmake should use the value of inheritEnvironments provided in CMakeSettings.json
- when run-vcpkg sets default triplet (e.g. VCPKG_TRIPLET env var), that should be re-used by run-cmake task HOT 1
- Caching fails when not using vcpkg as a submodule HOT 4
- Why it is highly recommended to use vcpkg as a Git submodule? HOT 2
- Should run-vcpgk offer an explicit --clean-after-build option? HOT 2
- Build only debug by Visual Studio generator in CMakeSettings HOT 3
- task-vcpkg does not correctly detect need to bootstrap when vcpkg.exe is present HOT 1
- Enable setupOnly mode like the GitHub action. HOT 1
- running ctests HOT 1
- vcpkg workflow depicts not-existent 'save/restore cache actions'
- How to pass arguments to cmake generator HOT 1
- Action could not be found HOT 2
- Leverage the NPM packages published from repository https://github.com/lukka/run-cmake-vcpkg-action-libs
- trouble running vcpkg on osx agents in azure pipelines HOT 1
- CppBuildTask on Azure DevOps Server HOT 1
- Manifest mode
- Invalid generator for VS2019 x64 HOT 2
- runcmake fails when CMakeSettings.json has UTF8 BOM
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 cppbuildtasks.