lairworks / nas2d-core

NAS2D is an open source, object oriented 2D game development framework written in portable C++.
http://nas2d.lairworks.com
zlib License
10 stars 5 forks source link

Fix `vcpkg` caching on CI #1111

Closed DanRStevens closed 1 year ago

DanRStevens commented 1 year ago

This improves the cache situation for Issue #1110.

There seem to be a few weaknesses though. The vcpkg install step may no longer be required, as that part will be automated during the build, though we may still want to include it so we get separate step timing when the cache needs to be rebuilt. The vcpkg install step still takes about 1 minute, so it seems to be doing more work than simply validating dependencies are up-to-date after the cache restore. I've also noticed the cache contains both debug and release versions of all libraries. This means the cache is twice as large as previous (54 MB instead of 27 MB).

Current caches can be viewed here: https://github.com/lairworks/nas2d-core/actions/caches