-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.2 KB
/
stan.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
name: stan
on:
push:
pull_request:
jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.6"]
ghc:
- "8.10.7"
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: haskell-actions/setup@v2
name: Setup GHC and cabal-install
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- uses: actions/cache@v2
name: cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.ghc }}-cabal
- uses: pavpanchekha/[email protected]
name: setup z3
with:
version: "4.8.7"
- name: update
run: cabal update
- name: install stan
run: cabal install stan -w ghc-${{matrix.ghc}} --installdir=.bin --install-method=copy --overwrite-policy=always
- name: build
run: cabal build all --enable-tests --project-file=cabal.blobs.project
- name: run stan
run: ./.bin/stan report
- uses: actions/upload-artifact@v3
if: failure()
with:
name: stan-report
path: ./stan.html