Skip to content

Commit c3f2d0c

Browse files
committed
Enable cache for GH workflows
1 parent 2db7198 commit c3f2d0c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/haddock-pages.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ jobs:
2121
- name: Checkout repository content
2222
uses: actions/checkout@v4
2323

24+
- name: Configure cache
25+
uses: actions/cache@v4
26+
with:
27+
path: |
28+
~/.cabal/packages
29+
~/.cabal/store
30+
dist-newstyle
31+
key: cabal-${{ hashFiles('**/*.cabal', '**/*.cabal.project', '**/*.cabal.project.freeze') }}
32+
restore-keys: cabal-
33+
2434
- name: Prepare cabal
2535
run: cabal update
2636

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,16 @@ jobs:
1616
- name: Checkout repository content
1717
uses: actions/checkout@v4
1818

19+
- name: Configure cache
20+
uses: actions/cache@v4
21+
with:
22+
path: |
23+
~/.cabal/packages
24+
~/.cabal/store
25+
dist-newstyle
26+
key: cabal-${{ hashFiles('**/*.cabal', '**/*.cabal.project', '**/*.cabal.project.freeze') }}
27+
restore-keys: cabal-
28+
1929
- name: Install dependencies
2030
run: |
2131
cabal update

0 commit comments

Comments
 (0)