-
Notifications
You must be signed in to change notification settings - Fork 10
49 lines (49 loc) · 1.38 KB
/
haskell.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: CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.6"]
ghc: ["8.6.5", "8.8.4", "8.10.7", "9.0.2", "9.2.3", "9.4.2"]
env:
CONFIG: "--enable-tests --enable-benchmarks --flags llvm"
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/cache@v2
with:
path: ${{ runner.temp }}/llvm
key: llvm-9.0.0
- uses: KyleMayes/install-llvm-action@v1
with:
version: "9.0.0"
directory: ${{ runner.temp }}/llvm
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- uses: haskell/actions/setup@v1.2
id: setup-haskell-cabal
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: cabal v2-update
- run: cabal v2-freeze $CONFIG
- uses: actions/cache@v2.1.3
with:
path: |
${{ steps.setup-haskell-cabal.outputs.cabal-store }}
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-
- run: cabal v2-build $CONFIG
- run: cabal v2-haddock $CONFIG
- run: cabal v2-sdist
- run: cabal v2-bench
- run: cabal v2-test