Releases: hynek/setup-cached-uv
Release list
v2.6.0
Added
- New
prune-cacheinput that controls whetheruv cache prune --ciis run before the cache is saved.
Changed
- Cache pruning is now opt-in. Set
prune-cachetotrueto get the previous behavior. See this research conducted by Charlie Marsh for the reasoning.
v2.5.0
v2.4.0
Changed
-
All actions are pinned to their exact hashes.
-
All actions have also been updated to avoid deprecation warnings.
v2.3.0
Changed
- The default value for
cache-dependency-pathis nowpyproject.toml. This means that changes to packaging metadata of modern Python packages will invalidate the cache. #19
v2.2.1
v2.2.0
v2.1.0
v2.0.0
Added
-
Automatic cache pruning. If caching is active, we now automatically run
uv cache prune --cithat shrinks the cache directory to only downloaded files. This make the cache smaller and therefore faster to save and restore. #9 -
The current calendar week is now added to the cache key by default. This means that the cache is refreshed weekly.
You can tweak the behavior using the
cache-date-suffixinput. Setting it to""disables this feature, any other value is interpreted as an argument to thedateCLI command. #11
Changed
-
The name of the workflow and of the current job are now part of the cache key. While this means that you can't share a cache between jobs, this should be only a minor inconvenience in practice and make it do the right thing in the vast majority of cases.
If this is a problem for you, please open an issue and tell us about your use-case. We can always add an option to set the whole key explicitly. #10
v1.3.0
v1.2.0
Added
-
Option to conditionally disable caching by setting
if-use-cacheto anything else than'true'.uv is increadibly fast at installing wheels, while GitHub Actions's caching is rather slow. But it's still faster than building missing wheels for exotic platforms (say, PyPy).
This option allows you activate caching only when it's helpful. #6
