-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (47 loc) · 1.41 KB
/
ci.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
on: [push, pull_request]
name: ci
jobs:
agda:
name: agda
runs-on: ubuntu-latest
steps:
- name: Check Out Repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup Haskell
uses: haskell/actions/setup@v1
with:
ghc-version: '8.10.4'
enable-stack: true
stack-version: 'latest'
- name: Set PATH
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Cache stack workspace
uses: actions/cache@v2
id: cache-stack
with:
path: ~/.stack
key: ${{ runner.os }}-stack-ghc-8.10.4-agda-2.6.1.3
- name: Cache HoTT-Agda build
uses: actions/cache@v2
id: cache-hott-agda
with:
path: HoTT-Agda/_build
key: ${{ runner.os }}-hott-agda-${{ hashFiles('HoTT-Agda/_build/**/*.agdai') }}
- name: Install Agda
run: stack --resolver lts-17.15 --system-ghc install Agda-2.6.1.3
- name: Check Pi
run: make -j3
- name: Generate html
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
run: |
./index.sh
make html
- name: Deploy html
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: html