You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems the action calls cacheDir to save a downloaded and extracted sscache, but it does not use find to see if it is already in the cache and calls directly downloadTool to download it again.
The text was updated successfully, but these errors were encountered:
* fix: avoid downloading package when local cache exists
As mentioned in
#107,
`setup` function didn't use `find` function even though it uses
`cacheDir` 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.
* fix: explicit comparison for boolean-like value
It seems the action calls
cacheDir
to save a downloaded and extracted sscache, but it does not usefind
to see if it is already in the cache and calls directlydownloadTool
to download it again.The text was updated successfully, but these errors were encountered: