@@ -37,10 +37,10 @@ jobs:
37
37
run : curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
38
38
39
39
- name : Get cache
40
- run : ~/.elan/bin/lake -Kenv=dev exe cache get || true
40
+ run : ~/.elan/bin/lake exe cache get || true
41
41
42
42
- name : Build project
43
- run : ~/.elan/bin/lake -Kenv=dev build FLT
43
+ run : ~/.elan/bin/lake build FLT
44
44
45
45
- name : Cache mathlib docs
46
46
uses : actions/cache@v3
@@ -52,33 +52,43 @@ jobs:
52
52
.lake/build/doc/Std
53
53
.lake/build/doc/Mathlib
54
54
.lake/build/doc/declarations
55
+ !.lake/build/doc/declarations/declaration-data-FLT*
55
56
key : MathlibDoc-${{ hashFiles('lake-manifest.json') }}
56
57
restore-keys : |
57
58
MathlibDoc-
58
59
59
60
- name : Build documentation
60
- run : ~/.elan/bin/lake -Kenv=dev build FLT:docs
61
+ run : ~/.elan/bin/lake -R - Kenv=dev build FLT:docs
61
62
62
63
- name : Build blueprint
63
64
uses : xu-cheng/texlive-action@v2
64
65
with :
65
66
docker_image : ghcr.io/xu-cheng/texlive-full:20231201
66
67
run : |
67
- export PIP_BREAK_SYSTEM_PACKAGES=1
68
68
apk update
69
69
apk add --update make py3-pip git pkgconfig graphviz graphviz-dev gcc musl-dev
70
70
git config --global --add safe.directory $GITHUB_WORKSPACE
71
71
git config --global --add safe.directory `pwd`
72
- python3 -m pip install --upgrade pip requests wheel
73
- python3 -m pip install pygraphviz --global-option=build_ext --global-option="-L/usr/lib/graphviz/" --global-option="-R/usr/lib/graphviz/"
74
- pip install -r blueprint/requirements.txt
75
- python3 -m pip install invoke
76
- inv all
77
-
78
- - name : Copy Lean documentation to `docs/docs`
72
+ python3 -m venv env
73
+ source env/bin/activate
74
+ pip install --upgrade pip requests wheel
75
+ pip install pygraphviz --global-option=build_ext --global-option="-L/usr/lib/graphviz/" --global-option="-R/usr/lib/graphviz/"
76
+ pip install leanblueprint
77
+ leanblueprint pdf
78
+ mkdir -p docs
79
+ cp blueprint/print/print.pdf docs/blueprint.pdf
80
+ leanblueprint web
81
+ cp -r blueprint/web docs/blueprint
82
+
83
+ - name : Check declarations
79
84
run : |
80
- mv .lake/build/doc docs/docs
85
+ ~/.elan/bin/lake exe checkdecls blueprint/lean_decls
81
86
87
+ - name : Move documentation to `docs/docs`
88
+ run : |
89
+ sudo chown -R runner docs
90
+ cp -r .lake/build/doc docs/docs
91
+
82
92
- name : Bundle dependencies
83
93
uses : ruby/setup-ruby@v1
84
94
with :
@@ -90,6 +100,11 @@ jobs:
90
100
working-directory : docs
91
101
run : JEKYLL_ENV=production bundle exec jekyll build
92
102
103
+ - name : Upload docs & blueprint artifact
104
+ uses : actions/upload-pages-artifact@v1
105
+ with :
106
+ path : docs/
107
+
93
108
- name : Upload docs & blueprint artifact
94
109
uses : actions/upload-pages-artifact@v1
95
110
with :
0 commit comments