Commit Graph
2 Commits
Author SHA1 Message Date
110416 340520239a fix: avoid downloading package when local cache exists (#123)
* fix: avoid downloading package when local cache exists

As mentioned in
https://github.com/Mozilla-Actions/sccache-action/issues/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
2024-07-18 12:03:11 +02:00
110416 bbcfdc3c11 fix: string interpolation (#122)
* fix: String interpolation uses backtick

* chore: fmt

* chore: fmt
2024-06-18 09:45:44 +02:00