{"id":23613690,"url":"https://github.com/freckle/stack-cache-action","last_synced_at":"2025-05-12T22:03:53.605Z","repository":{"id":36971382,"uuid":"361242234","full_name":"freckle/stack-cache-action","owner":"freckle","description":"One-line caching action for Stack-based Haskell projects","archived":false,"fork":false,"pushed_at":"2025-05-03T10:43:06.000Z","size":1590,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-12T22:03:33.649Z","etag":null,"topics":["ghvm-managed"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freckle.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-04-24T18:52:57.000Z","updated_at":"2025-05-03T10:43:08.000Z","dependencies_parsed_at":"2023-10-11T02:09:12.230Z","dependency_job_id":"465a7ff9-b611-4b0f-b57c-315eabe81125","html_url":"https://github.com/freckle/stack-cache-action","commit_stats":{"total_commits":156,"total_committers":4,"mean_commits":39.0,"dds":"0.15384615384615385","last_synced_commit":"5ce8e9c68d374a8f5b82f3b67187794b2d017ebd"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fstack-cache-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fstack-cache-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fstack-cache-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fstack-cache-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freckle","download_url":"https://codeload.github.com/freckle/stack-cache-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253830956,"owners_count":21971004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ghvm-managed"],"created_at":"2024-12-27T17:18:47.979Z","updated_at":"2025-05-12T22:03:53.510Z","avatar_url":"https://github.com/freckle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stack Cache Action\n\nCache step for Stack-based Haskell projects on GitHub Actions.\n\n**NOTE**: if you are using `freckle/stack-action@v4` or newer, you do not\nneed this action as its own step. That version of that action handles all\ncaching internally, and better.\n\n## Usage\n\n```yml\nuses: freckle/stack-cache-action@v2\n```\n\n## Behavior\n\n1. Restores/saves `~/.stack` and _all_ `.stack-work` directories, as determined\n   by the location of `.cabal` and `package.yaml` files\n\n1. Includes a hash of all source files in the cache key, so a new cache will be\n   saved even if the dependencies haven't changed. This prevents re-compilation\n   of un-changed modules in later builds.\n\n1. Falls back to same resolver/dependencies, then same resolver (but no further)\n\n## Inputs\n\n- `stack-yaml`: Path to your `stack.yaml` file\n- `working-directory`: Useful in monorepositories\n- `prefix`: A prefix to include on keys; useful for cache busting or versioning\n\n## Outputs\n\n- `cache-hit`: indicates a full cache hit on the primary key\n\n## Further Reading\n\nSee https://tech.freckle.com/2021/05/18/haskell-on-actions/ for a short tutorial.\n\n## Acknowledgements\n\nThe idea and initial repository skeleton was taken from [gha-yarn-cache][].\n\n[gha-yarn-cache]: https://github.com/c-hive/gha-yarn-cache\n\n---\n\n[LICENSE](./LICENSE) | [CHANGELOG](./CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Fstack-cache-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreckle%2Fstack-cache-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Fstack-cache-action/lists"}