-
-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (54 loc) · 1.77 KB
/
Copy pathci.yml
File metadata and controls
62 lines (54 loc) · 1.77 KB
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
name: CI
on:
push:
merge_group:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup elan
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> "$GITHUB_PATH"
- name: Restore cache
id: cache-restore
uses: actions/cache/restore@v5
with:
path: .lake
key: lake-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}-${{ github.sha }}
restore-keys: |
lake-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}
- name: Get Mathlib cache
run: lake exe cache get
# Build Catalogue
- name: Download JuliaMono
run: |
wget https://github.com/cormullion/juliamono/releases/download/v0.061/JuliaMono-webfonts.tar.gz
mkdir juliamono
tar -xvf JuliaMono-webfonts.tar.gz -C juliamono --strip-components 1
rm JuliaMono-webfonts.tar.gz
working-directory: ./assets
- name: Build Catalogue
run: lake exe catalogue
- name: Save project cache
uses: actions/cache/save@v5
with:
path: .lake
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
# Upload pages artifact
- uses: actions/upload-pages-artifact@v4
with:
path: _out/html-multi
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
steps:
- id: deployment
uses: actions/deploy-pages@v4