It is not significant on GitHub-hosted runners because cacheDir stores files in local file system, which is ephemeral. However, it wastes time on self-hosted runners.
This commit adds a step to search local file system cache for sccache as well as splitting download procedure to a dedicated function.
As mentioned in https://github.com/Mozilla-Actions/sccache-action/issues/107,
setup
function didn't usefind
function even though it usescacheDir
to store downloaded files, which leads to redundant download.It is not significant on GitHub-hosted runners because
cacheDir
stores files in local file system, which is ephemeral. However, it wastes time on self-hosted runners.This commit adds a step to search local file system cache for sccache as well as splitting download procedure to a dedicated function.