Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Commit 43053d5

Browse files
committed
CI: use different cabal versions
1 parent 8fa2aaf commit 43053d5

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

.github/workflows/ci.yml

+18-13
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,23 @@ on:
99

1010
jobs:
1111
build:
12-
name: ghc ${{ matrix.ghc }}
12+
name: ghc ${{ matrix.versions.ghc }}
1313
runs-on: ubuntu-16.04
1414
strategy:
1515
matrix:
16-
cabal: ["2.4"]
17-
ghc:
18-
- "8.0.2"
19-
- "8.2.2"
20-
- "8.4.4"
21-
- "8.6.5"
22-
- "8.8.3"
23-
- "8.10.1"
16+
versions:
17+
- ghc: '8.0.2'
18+
cabal: '2.4'
19+
- ghc: '8.2.2'
20+
cabal: '2.4'
21+
- ghc: '8.4.4'
22+
cabal: '2.4'
23+
- ghc: '8.6.5'
24+
cabal: '3.2'
25+
- ghc: '8.8.3'
26+
cabal: '3.2'
27+
- ghc: '8.10.1'
28+
cabal: '3.2'
2429

2530
steps:
2631
- uses: actions/checkout@v2
@@ -32,19 +37,19 @@ jobs:
3237
- uses: actions/setup-haskell@v1
3338
name: Setup Haskell
3439
with:
35-
ghc-version: ${{ matrix.ghc }}
36-
cabal-version: ${{ matrix.cabal }}
40+
ghc-version: ${{ matrix.versions.ghc }}
41+
cabal-version: ${{ matrix.versions.cabal }}
3742

3843
- uses: actions/cache@v1
3944
name: Cache ~/.cabal/store
4045
with:
4146
path: ~/.cabal/store
42-
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
47+
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-cabal
4348

4449
- name: Build
4550
run: |
4651
cabal v2-update
47-
cabal v2-build --enable-tests --enable-benchmarks
52+
cabal v2-build --enable-tests
4853
4954
- name: Test
5055
run: |

0 commit comments

Comments
 (0)