File tree Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Expand file tree Collapse file tree 1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -14,29 +14,39 @@ jobs:
14
14
strategy :
15
15
matrix :
16
16
target : [haskellorg, githubpages]
17
+ ghc : ["9.2.5"]
18
+ cabal : ["3.10.1"]
17
19
18
20
steps :
19
- - name : Install GHC 9.2.5
20
- run : ghcup install ghc 9.2.5
21
-
22
- - name : Select GHC 9.2.5
23
- run : ghcup set ghc 9.2.5
24
-
25
21
- name : Check out repo
26
22
uses : actions/checkout@v3
23
+
24
+ - name : Install Haskell Toolchain
25
+ uses : haskell/actions/setup@v2
26
+ with :
27
+ ghc-version : ${{ matrix.ghc }}
28
+ cabal-version : ${{ matrix.cabal }}
29
+
30
+ - name : Configure the build plan
31
+ working-directory : message-index
32
+ run : |
33
+ cabal update
34
+ cabal build --dry-run
35
+ # cabal build --dry-run creates dist-newstyle/cache/plan.json
36
+ # Keep a watch on this `cabal-3.9 build --dry-run` bug:
37
+ # https://github.com/haskell/cabal/issues/8706
27
38
28
39
- name : Read the Cabal cache
29
40
uses : actions/cache@v3
30
41
with :
31
42
path : |
32
43
~/.cabal/store
33
44
message-index/dist-newstyle
34
- key : cabal-cache-0-${{ hashFiles('message-index/message-index.cabal') }}
45
+ key : |
46
+ cabal-cache-ghc-${{ matrix.ghc }}-cabal-${{ matrix.cabal }}-${{ hashFiles('**/plan.json') }}
35
47
restore-keys : |
36
- cabal-cache-0
48
+ cabal-cache-ghc-${{ matrix.ghc }}-cabal-${{ matrix.cabal }}-
37
49
38
- - name : Update the Cabal index
39
- run : cabal update
40
50
41
51
- name : Build with Hakyll
42
52
working-directory : message-index
You can’t perform that action at this time.
0 commit comments