-
Notifications
You must be signed in to change notification settings - Fork 54
31 lines (30 loc) · 834 Bytes
/
ci.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
name: ci
on:
push:
branches:
- master
pull_request:
jobs:
cabal:
runs-on: ${{ matrix.os }}
strategy:
matrix:
ghc: ["9.2", "9.4", "9.6", "9.8", "9.10"]
cabal: ["3.10.3.0"]
os: [ubuntu-latest]
name: build and test (cabal)
steps:
- uses: actions/checkout@v2
- name: Run Haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
id: setup-haskell
- uses: actions/cache@v3
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-v2-${{ matrix.ghc }}-${{ github.run_id }}
restore-keys: ${{ runner.os }}-v2-${{ matrix.ghc }}-
- run: |
cabal build all -fexamples --ghc-options=-Werror