-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 986 Bytes
/
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
name: Haskell CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-haskell@v1
with:
ghc-version: '8.10.3'
stack-version: '2.9.3'
cabal-version: '3.10.3.0'
- name: Set path
run: export PATH=$PATH:/home/runner/.cabal/bin/
- name: Print path
run: echo $PATH
- name: Install system dependencies
run: sudo apt-get update && sudo apt install gcc libgmp-dev libffi-dev libbsd-dev libc6-dev libncurses5-dev libc6 libffi8 libgmp10 libtinfo6
- name: Install dependencies
run: |
cabal update
cabal install agda2hs
- name: Build
run: |
agda2hs ./src/Lam/Agda/Lam/Export.agda
mv ./src/Lam/Agda/Lam/*.hs ./src/Lam
rm ./src/Lam/Export.hs
stack build
- name: Run tests
run: stack test