Skip to content

Commit

Permalink
attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
fpvandoorn committed Jun 30, 2024
1 parent 28748c1 commit a729fea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/blueprint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
run: curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain leanprover/lean4:4.5.0

- name: Get cache
run: ~/.elan/bin/lake exe cache get || true
run: ~/.elan/bin/lake -Kenv=dev exe cache get || true

- name: Build project
run: ~/.elan/bin/lake build Carleson
run: ~/.elan/bin/lake -Kenv=dev build Carleson

- name: Cache mathlib docs
uses: actions/cache@v3
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
pip install pygraphviz --global-option=build_ext --global-option="-L/usr/lib/graphviz/" --global-option="-R/usr/lib/graphviz/"
pip install leanblueprint
leanblueprint pdf
mkdir docs
mkdir docs || true
cp blueprint/print/print.pdf docs/blueprint.pdf
leanblueprint web
cp -r blueprint/web docs/blueprint
Expand Down
35 changes: 17 additions & 18 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,24 @@ jobs:
- name: Build documentation
run: ~/.elan/bin/lake -Kenv=dev build Carleson:docs

- name: Build blueprint and copy to `docs/blueprint`
uses: xu-cheng/texlive-action@v2
- name: Install Python
uses: actions/setup-python@v4
with:
docker_image: ghcr.io/xu-cheng/texlive-full:20231201
run: |
apk update
apk add --update make py3-pip git pkgconfig graphviz graphviz-dev gcc musl-dev
git config --global --add safe.directory $GITHUB_WORKSPACE
git config --global --add safe.directory `pwd`
python3 -m venv env
source env/bin/activate
pip install --upgrade pip requests wheel
pip install pygraphviz --global-option=build_ext --global-option="-L/usr/lib/graphviz/" --global-option="-R/usr/lib/graphviz/"
pip install leanblueprint
leanblueprint pdf
mkdir docs
cp blueprint/print/print.pdf docs/blueprint.pdf
leanblueprint web
cp -r blueprint/web docs/blueprint
python-version: '3.9'
cache: 'pip' # caching pip dependencies

- name: Install blueprint apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y graphviz libgraphviz-dev pdf2svg dvisvgm texlive-full
- name: Install blueprint dependencies
run: |
pip install -r blueprint/requirements.txt
- name: Build blueprint and copy to `docs/blueprint`
run: |
inv all
- name: Copy documentation to `docs/docs`
run: |
Expand Down

0 comments on commit a729fea

Please sign in to comment.