-
-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.04 KB
/
ci.yml
File metadata and controls
50 lines (43 loc) · 1.04 KB
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
50
name: CI
# Trigger the workflow on push or pull request, but only for the
# master branch
on:
pull_request:
push:
paths-ignore:
- 'README.md'
- 'stack.yaml'
- '.github/FUNDING.yml'
jobs:
build:
name: ghc ${{ matrix.versions.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
versions:
- ghc: '9.6'
cabal: '3.8'
- ghc: '9.8'
cabal: '3.10'
- ghc: '9.10'
cabal: '3.12'
- ghc: '9.12'
cabal: '3.14'
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
name: Setup Haskell
with:
ghc-version: ${{ matrix.versions.ghc }}
cabal-version: ${{ matrix.versions.cabal }}
- uses: actions/cache@v3
name: Cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-cabal
- name: Build
run: |
cabal v2-build --enable-tests
- name: Test
run: |
cabal v2-test --enable-tests