Cached Tools Documentation #8010
Replies: 2 comments 2 replies
-
Hi @bxtp4p. Tools cache is an instrument that allows downloading and caching tools in runners. This is useful if you want to switch back and forth between versions of a tool, or save a tool between runs (in case of self-hosted runners). The core element of this instrument is @actions/tool-cache library. It's used in Speaking of GitHub-hosted runners, some tools are preinstalled in images to the place where tool-cache library expects them to be for But when you install something 'directly', tool cache is not used since vanilla utils don't know anything about this mechanics. |
Beta Was this translation helpful? Give feedback.
-
Thanks @vpolikarpov-akvelon - this is helpful. Does it make sense to include at least some of this info in the README for the runner images? |
Beta Was this translation helpful? Give feedback.
-
Can some documentation on how Cached Tools is used be provided? For example, it seems like it's used by various
setup-*
actions but is it used for other things? And what happens if someone tries to install something directly (e..g, viaapt get install
) for something that is in Cached Tools? Will that use the cached version then?Beta Was this translation helpful? Give feedback.
All reactions