-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (41 loc) · 1.01 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
name: cabal
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
schedule:
- cron: "00 15 * * *"
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
os: [ubuntu-18.04, macos-10.15]
ghc: ["8.10"]
cabal: ["3.2"]
cache-version: ["2020-11-28"]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- name: Cache cabal
uses: actions/cache@v2
with:
path: |
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cache-version }}-cabal
- name: Install dependencies
run: |
cabal update
cabal configure --disable-optimization --write-ghc-environment-files=always -j2
cabal build all --only-dependencies
- name: Build
run: |
cabal build
cabal install all:exes --overwrite-policy=always