-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (51 loc) · 1.65 KB
/
haskell.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
name: Haskell CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-11, macos-12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: haskell/actions/setup@v2
with:
enable-stack: true
cabal-version: '3.6.2.0'
- name: Cache
uses: actions/cache@v3
env:
cache-name: cache-stack
with:
path: ~/.stack
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('lib/haskell/**/package.yaml','lib/haskell/**/stack.yaml.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('lib/haskell/**/package.yaml','lib/haskell/**/stack.yaml.lock') }}
${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('lib/haskell/**/package.yaml') }}
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build explainable
run: stack build
working-directory: lib/haskell/explainable
- name: Test explainable
run: stack test
working-directory: lib/haskell/explainable
- name: Build anyall
run: stack build
working-directory: lib/haskell/anyall
- name: Test anyall
run: stack test
working-directory: lib/haskell/anyall
- name: Build natural4
run: stack build
working-directory: lib/haskell/natural4
- name: Test natural4
run: stack test
working-directory: lib/haskell/natural4