haskell-actions / haskell-actions/setup

Document how to cache stack

Open
#86 7 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

re: stack
Dominant language
TypeScript
Stars
91
Forks
21
PR merge metrics
No merged PRs in 30d

Description

How should we set up this action to cache stack, like cabal with caching. Here's the caching for liquid-fixpoint:

      - name: Cache ~/.stack and .stack-work
        uses: actions/cache@v3
        with:
          path: |
            ~/.stack
            .stack-work
          key: ${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles('**/*.cabal', './stack.yaml', './stack.yaml.lock') }}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the linked .github/workflows/stack.yml example and the existing setup documentation, including the actions/cache@v3 configuration. Document how to cache ~/.stack and .stack-work, including the cache key inputs, so users can follow the setup action's Stack workflow without needing the issue discussion.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, haskell
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.