setup-java download jdk binary again every time due to not cache tool folder #70
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
And github runner can cache container
The runner mounts the
In my test, the files created by a task will remain in the volume even after the task has finished. If I rerun the task, the file will still be there. The workflow is like:
I also test the
setup-javaaction. But it is strange that the
setup-javaaction doesn't seem to write data to the
/toolcachedirectory. I'll test other actions to check if they cache files there.
At present, the
act-toolcachevolume is mounted to
/toolcacheand the data in
/toolcachewill be stored persistently. But the problem is that actions don't write data to
/opt/hostedtoolcache(specified by the
Maybe we need to support users to configure the volumes that will be mounted to
RUNNER_TOOL_CACHE. Now there is a workaround: set the
RUNNER_TOOL_CACHEenv manually in the workflow, like this:
First run (no cache):
Second run (get from cache):