-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (69 loc) · 2.19 KB
/
main.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# This workflow inspired by the workflow at
# jonsterling/agda-calf
on: [push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
matrix:
agda-ref: ["v2.6.4"]
ghc-ver: ["8.10.2"]
cabal-ver: ["3.4.0.0"]
cubical-ref: ["rahulc29/realizability"]
steps:
- uses: actions/cache@v2
name: Cache cabal packages
id: cache-cabal
with:
path: |
~/.cabal/packages
~/.cabal/store
~/.cabal/bin
~/.local/bin
dist-newstyle
key: ${{ runner.os }}-${{ matrix.ghc-ver }}-${{ matrix.cabal-ver }}-${{ matrix.agda-ref }}
- name: Install cabal
if: steps.cache-cabal.outputs.cache != 'true'
uses: actions/setup-haskell@v1.1.3
with:
ghc-version: ${{ matrix.ghc-ver }}
cabal-version: ${{ matrix.cabal-ver }}
- name: Put cabal binaries in PATH
run: echo "~/.cabal/bin" >> $GITHUB_PATH
- name: Download Agda from Github
if: steps.cache-cabal.outputs.cache-hit != 'true'
uses: actions/checkout@v2
with:
repository: agda/agda
path: agda
ref: ${{ matrix.agda-ref }}
- name: Install Agda
if: steps.cache-cabal.outputs.cache-hit != 'true'
run: |
cabal update
cabal install --overwrite-policy=always --ghc-options='-O2 +RTS -M6G -RTS' alex-3.2.5
cabal install --overwrite-policy=always --ghc-options='-O2 +RTS -M6G -RTS' happy-1.19.12
cd agda
mkdir -p doc
touch doc/user-manual.pdf
cabal install --overwrite-policy=always --ghc-options='-O1 +RTS -M6G -RTS'
- name: Checkout realizability fork of Cubical
uses: actions/checkout@v4
with:
repository: rahulc29/cubical
ref: ${{ matrix.cubical-ref }}
- name: Put cubical library in Agda library list
run: |
mkdir -p ~/.agda/
touch ~/.agda/libraries
echo "$GITHUB_WORKSPACE/cubical/cubical.agda-lib" > ~/.agda/libraries
- name: Checkout master
uses: actions/checkout@v4
with:
path: master
- name: Compile main library
run: |
cd master
cd src
agda --html --html-dir=../docs index.agda