aleasims/Go Caching Tool
A GitHub Action that implements caching for Go projects.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| prefix-key | The prefix cache key, this can be changed to start a new cache manually. | no | v0-go |
| shared-key | A cache key that is used instead of the automatic `job`-based key, and is stable over multiple jobs. | no | — |
| key | An additional cache key that is added alongside the automatic `job`-based cache key and can be used to further differentiate jobs. | no | — |
| env-vars | Additional environment variables to include in the cache key, separated by spaces. | no | — |
| modules | Paths to multiple Go modules, separated by newlines. | no | — |
| cache-directories | Additional non workspace directories to be cached, separated by newlines. | no | — |
| cache-on-failure | Cache even if the build fails. Defaults to false. | no | — |
| save-if | Determiners whether the cache should be saved. If `false`, the cache is only restored. | no | true |
| cache-provider | Determines which provider to use for caching. Options are github, buildjet, or warpbuild. Defaults to github. | no | github |
| cache-bin | Determines whether to cache $GOBIN. | no | true |
| lookup-only | Check if a cache entry exists without downloading the cache | no | false |
Outputs
| name | description |
|---|---|
| cache-hit | A boolean value that indicates an exact match was found. |