File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 19
19
ghc-version : ${{ matrix.ghc }}
20
20
cabal-version : ' 3.6'
21
21
22
- - name : Cache
22
+ - name : Cabal cache
23
23
uses : actions/cache@v1
24
24
env :
25
25
cache-name : cache-cabal
28
28
key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
29
29
restore-keys : |
30
30
${{ runner.os }}-build-${{ env.cache-name }}-
31
- ${{ runner.os }}-build-
32
- ${{ runner.os }}-
31
+
32
+ - name : Stack cache
33
+ uses : actions/cache@v1
34
+ env :
35
+ cache-name : cache-stack
36
+ with :
37
+ path : ~/.stack
38
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/stack.yaml') }}
39
+ restore-keys : |
40
+ ${{ runner.os }}-build-${{ env.cache-name }}-
33
41
34
42
- name : Cabal update
35
43
run : cabal update
38
46
- name : Test
39
47
run : cabal test all
40
48
# stack build uses stack.yaml which actually uses ghc-8.10.7
41
- - if : matrix.ghc == '8.10.7'
49
+ - if : matrix.ghc == '8.10.7' && runner.os == 'Linux'
42
50
name : Build using stack
43
51
run : stack build
You can’t perform that action at this time.
0 commit comments