-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1.08 KB
/
stack.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
name: stack
on:
push:
branches: [main, ci-stack]
pull_request:
branches: [main]
jobs:
build:
name: ghc-${{ matrix.vers.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.10.3.0"]
vers:
- {ghc: "9.8.2", stackage: "nightly-2024-05-18"}
steps:
- uses: actions/checkout@v4
- name: Set up GHC and cabal-install
uses: haskell-actions/setup@v2
id: setup
with:
ghc-version: ${{ matrix.vers.ghc }}
cabal-version: ${{ matrix.cabal }}
enable-stack: true
stack-version: '2.15.7'
- name: Update hackage index
run: cabal update --ignore-project
- name: Install Dhall
uses: dhall-lang/setup-dhall@v4
with:
version: '1.42.0'
- name: Updo
run: GHC_VERSION=${{ matrix.vers.ghc }} STACKAGE_VERSION=${{ matrix.vers.stackage }} make -f project-files.mk stack.yaml
- name: build
run: stack test --no-run-tests --no-terminal
- name: test golden
run: stack test hpack-dhall:golden --no-terminal --test-arguments "--color=always"