Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ jobs:

- name: Setup Haskell with Stack
uses: haskell-actions/setup@v2
id: setup
with:
enable-stack: true
stack-version: "latest"

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.stack
path: ${{ steps.setup.outputs.stack-root }}
key: pedantic-${{ hashFiles('stack.yaml') }}
restore-keys: |
pedantic-
Expand All @@ -45,25 +46,18 @@ jobs:

- name: Setup Haskell with Stack
uses: haskell-actions/setup@v2
id: setup
with:
enable-stack: true
stack-version: "latest"

- name: Cache dependencies on Unix-like OS
if: startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
uses: actions/cache@v4
with:
path: ~/.stack
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}

- name: Cache dependencies on Windows
if: startsWith(runner.os, 'Windows')
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~\AppData\Roaming\stack
~\AppData\Local\Programs\stack
path: ${{ steps.setup.outputs.stack-root }}
key: ${{ runner.os }}-${{ hashFiles('stack.yaml') }}
restore-keys: |
${{ runner.os }}

- name: Install dependencies
run: |
Expand Down