File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 13
13
14
14
name : GHC ${{ matrix.ghc }} on ${{ matrix.os }}
15
15
steps :
16
- - uses : actions/checkout@v3
17
- - uses : haskell/actions/setup@v2
18
- with :
19
- ghc-version : ${{ matrix.ghc }}
20
- cabal-version : ' 3.10.1.0'
16
+
21
17
- name : Cache
18
+ # Needs to be an early step so e.g. `cabal update` isn't undone
22
19
uses : actions/cache@v3
23
20
env :
24
21
cache-name : cache-cabal
@@ -31,13 +28,23 @@ jobs:
31
28
${{ runner.os }}-${{ matrix.ghc }}-
32
29
${{ runner.os }}
33
30
31
+ - uses : actions/checkout@v3
32
+
33
+ - uses : haskell/actions/setup@v2
34
+ with :
35
+ ghc-version : ${{ matrix.ghc }}
36
+ cabal-version : ' 3.10.1.0'
37
+
34
38
- name : Install dependencies
35
39
run : cabal build --only-dependencies --enable-tests --enable-benchmarks
40
+
36
41
- name : Build
37
42
run : cabal build --enable-tests --enable-benchmarks all
43
+
38
44
- name : Run tests
39
45
# We don't run hlint tests, because different versions of hlint have different suggestions, and we don't want to worry about satisfying them all.
40
46
run : cabal test --enable-tests -f-hlint all
47
+
41
48
- if : matrix.ghc != '8.4.4'
42
49
# docs aren't built on ghc 8.4.4 because some dependency docs don't build on older GHCs
43
50
name : Build Docs
You can’t perform that action at this time.
0 commit comments