-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (38 loc) · 1.2 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
name: cabal
on:
push:
branches: [main, ci-cabal]
pull_request:
branches: [main]
jobs:
build:
name: ghc-${{ matrix.vers.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.10"]
vers:
# - {ghc: "9.2.8", stackage: "lts-20.26"}
# - {ghc: "9.4.8", stackage: "lts-21.25"}
# - {ghc: "9.6.5", stackage: "lts-22.22"}
- {ghc: "9.8.2", stackage: "nightly-2024-05-18"}
steps:
- uses: actions/checkout@v4
- uses: haskell-actions/setup@v2
name: setup GHC and cabal-install
with:
ghc-version: ${{ matrix.vers.ghc }}
cabal-version: ${{ matrix.cabal }}
cabal-update: true
- uses: actions/cache@v4
name: cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-cabal-${{ matrix.cabal }}-ghc-${{ matrix.vers.ghc }}
- name: build
run: |
cabal install dhall-1.42.1
GHC_VERSION=${{ matrix.vers.ghc }} STACKAGE_VERSION=${{ matrix.vers.stackage }} make -f project-files.mk
cabal build all --enable-tests
- name: test golden
run: cabal test test:golden --test-show-details=direct --test-option="--color=always"