-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (42 loc) · 1.02 KB
/
cabal.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Cabal CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: cabal ${{ matrix.ghc }}
runs-on: ubuntu-16.04
strategy:
matrix:
ghc: ["8.10.1", "8.8.1", "8.6.5", "8.6.4", "8.6.3", "8.6.2"]
cabal: ["3.0"]
steps:
- uses: actions/checkout@v1
- uses: actions/setup-haskell@v1
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- uses: actions/cache@v1
name: Cache ~/.cabal/packages
with:
path: ~/.cabal/packages
key: cabal-packages-${{ matrix.ghc }}
- uses: actions/cache@v1
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: cabal-store-${{ matrix.ghc }}
- uses: actions/cache@v1
name: Cache dist-newstyle
with:
path: dist-newstyle
key: dist-newstyle-${{ matrix.ghc }}
- name: Install dependencies
run: |
cabal update
- name: Build
run: |
cabal new-build