-
Notifications
You must be signed in to change notification settings - Fork 15
45 lines (38 loc) · 1.05 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
name: stack
on:
push:
pull_request:
jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.6"]
ghc:
- "9.2.5"
- "9.0.2"
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup z3
uses: pavpanchekha/[email protected]
with:
version: "4.8.7"
- name: Setup Stack
uses: haskell/actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
enable-stack: true
stack-version: "latest"
- name: Cache ~/.stack and .stack-work
uses: actions/cache@v3
with:
path: |
~/.stack
.stack-work
key: ${{ runner.os }}-${{ matrix.ghc }}-stack-${{ hashFiles('**/*.cabal', './stack/stack-${{ matrix.ghc }}.yaml', './stack/stack-${{ matrix.ghc }}.yaml.lock') }}
- name: Build
run: stack build --no-terminal --stack-yaml=./stack/stack-${{ matrix.ghc }}.yaml