-
Notifications
You must be signed in to change notification settings - Fork 6
51 lines (45 loc) · 1.2 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI tests
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
versions:
- ghc: '8.10'
cabal: '3.2'
- ghc: '9.0'
cabal: '3.4'
- ghc: '9.2'
cabal: '3.6'
- ghc: '9.4'
cabal: 'latest'
- ghc: '9.6'
cabal: 'latest'
- ghc: '9.8'
cabal: 'latest'
- ghc: '9.10'
cabal: 'latest'
steps:
- uses: actions/checkout@v4
- name: Install cabal/ghc
run: |
ghcup install ghc --set ${{ matrix.versions.ghc }}
ghcup install cabal --set ${{ matrix.versions.cabal }}
- name: Cache cabal global package db
id: cabal-global
uses: actions/cache@v4
with:
path: |
~/.cabal
key: ${{ runner.os }}-${{ matrix.versions.ghc }}-${{ matrix.versions.cabal }}-cabal-global-${{ secrets.CACHE_VERSION }}
- name: Update
run: |
cabal v2-update
- name: Build
run: |
cabal v2-build --enable-tests --disable-optimization -fexecutable
- name: Test
run: |
cabal v2-test --disable-optimization