File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change 9
9
strategy :
10
10
fail-fast : false
11
11
matrix :
12
- ghc : ['9.4.1 ', '9.2.4 ', '9.0.2', '8.10.7']
12
+ ghc : ['9.4.4 ', '9.2.6 ', '9.0.2', '8.10.7']
13
13
os : [ubuntu-latest, macOS-latest, windows-latest]
14
14
steps :
15
- - uses : actions/checkout@v2
16
- - uses : haskell/actions/setup@v1
15
+ - uses : actions/checkout@v3
16
+
17
+ - uses : haskell/actions/setup@v2
18
+ id : setup
17
19
with :
18
- ghc-version : ${{ matrix.ghc }}
20
+ ghc-version : ${{ matrix.ghc }}
19
21
cabal-version : ' 3.8.1.0'
22
+ cabal-update : true
20
23
21
24
- name : Cache
22
- uses : actions/cache@v1
25
+ uses : actions/cache@v3
23
26
env :
24
- cache-name : cache-cabal
27
+ cache-name : haskell.yml
25
28
with :
26
- path : ~/.cabal
27
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
28
- restore-keys : |
29
- ${{ runner.os }}-build-${{ env.cache-name }}-
30
- ${{ runner.os }}-build-
31
- ${{ runner.os }}-
29
+ path : ${{ steps.setup.outputs.cabal-store }}
30
+ key : ${{ runner.os }}-${{ env.cache-name }}-ghc-${{ matrix.ghc }}-${{ hashFiles('**/*.cabal', '**/cabal.project') }}
31
+ restore-keys : ${{ runner.os }}-${{ env.cache-name }}-ghc-${{ matrix.ghc }}-
32
32
33
33
- name : Install dependencies
34
34
run : |
35
- cabal update
36
35
cabal build --only-dependencies --enable-tests --enable-benchmarks -vnormal+nowrap all
36
+
37
37
- name : Build
38
38
run : cabal build --enable-tests --enable-benchmarks -j1 -vnormal+nowrap all
39
+
39
40
- name : Run tests
40
41
run : cabal test -j1 -vnormal+nowrap all
You can’t perform that action at this time.
0 commit comments