9
9
strategy :
10
10
fail-fast : false
11
11
matrix :
12
- ghc : ['9.2.4', '9.0.2', '8.10.7', '8.8.4', '8.6.5']
13
- os : [ubuntu-latest, macOS-latest, windows-latest]
14
- ospath : [true, false]
15
- exclude :
16
- # newer 'entropy' doesn't work with old 'unix', and it doesn't have a correct version bound.
17
- - ospath : true
18
- ghc : 8.6.5
19
- # "cabal build" always timeout
20
- - ospath : true
21
- ghc : 8.8.4
22
- os : windows-latest
12
+ ghc : ['9.4.3', '9.2.5', '9.0.2', '8.10.7']
13
+ # Unlikely that we'll succeed on windows and fail on macos,
14
+ # including it is just burning CI time. But windows could have
15
+ # path or IO issues, so worth including
16
+ os : [ubuntu-latest, windows-latest]
23
17
24
18
steps :
25
- - uses : actions/checkout@v2
26
- - uses : haskell/actions/setup@v1
19
+ - uses : actions/checkout@v3
20
+ - uses : haskell/actions/setup@v2
27
21
with :
28
22
ghc-version : ${{ matrix.ghc }}
29
- cabal-version : ' 3.6'
30
23
31
24
- name : Cabal cache
32
- uses : actions/cache@v1
25
+ uses : actions/cache@v3
33
26
env :
34
27
cache-name : cache-cabal
35
28
with :
@@ -38,32 +31,12 @@ jobs:
38
31
restore-keys : |
39
32
${{ runner.os }}-build-${{ env.cache-name }}-
40
33
41
- - name : Stack cache
42
- uses : actions/cache@v1
43
- env :
44
- cache-name : cache-stack
45
- with :
46
- path : ~/.stack
47
- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/stack.yaml') }}
48
- restore-keys : |
49
- ${{ runner.os }}-build-${{ env.cache-name }}-
50
-
51
34
- name : Cabal update
52
35
run : cabal update
53
- - name : Cabal configure
54
- shell : bash
55
- run : |
56
- if [ ${{ matrix.ospath }} = "true" ]; then
57
- cabal configure --flags="force-ospath"
58
- fi
59
36
- name : Build using cabal
60
37
run : cabal build all
61
38
- name : Test
62
39
run : cabal test all
63
- # stack build uses stack.yaml which actually uses ghc-8.10.7
64
- - if : matrix.ghc == '8.10.7' && runner.os == 'Linux'
65
- name : Build using stack
66
- run : stack build
67
40
68
41
haskell_post_job :
69
42
runs-on : ubuntu-latest
0 commit comments