-
Notifications
You must be signed in to change notification settings - Fork 62
57 lines (47 loc) · 1.42 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
47
48
49
50
51
52
53
54
55
56
57
name: stack
on:
push:
branches:
- develop
pull_request:
env:
# We test in stack jobs that we can build with link-z3-as-a-library
STACK_FLAGS: --no-terminal --flag liquid-fixpoint:link-z3-as-a-library
jobs:
build:
name: ghc-${{ matrix.ghc }} z3-4.10.2
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.6"]
ghc:
- "9.8.1"
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup z3
uses: pavpanchekha/setup-z3@6b2d476d7a9227e0d8d2b94f73cd9fcba91b5e98
with:
version: "4.10.2"
- name: Workaround runner image issue
# https://github.com/actions/runner-images/issues/7061
run: sudo chown -R $USER /usr/local/.ghcup
- 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.yaml', './stack.yaml.lock') }}
- name: Build
run: stack test --no-run-tests $STACK_FLAGS
- name: Test
run: stack test --test-arguments "--color=always" $STACK_FLAGS