File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 48
48
sudo apt-get install libcairo2-dev libpango1.0-dev ffmpeg freeglut3-dev
49
49
- name : Install local Python package
50
50
run : poetry install --extras=manim --with docs
51
+ - name : Restore cached media
52
+ id : cache-media-restore
53
+ uses : actions/cache/restore@v3
54
+ with :
55
+ path : media
56
+ key : ${{ runner.os }}-media
51
57
- name : Build animations
52
58
run : |
53
59
poetry run manim example.py ConvertExample BasicExample ThreeDExample
58
64
poetry run manim-slides convert -v DEBUG ThreeDExample docs/source/_static/three_d_example.html -ccontrols=true
59
65
- name : Show docs/source/_static/ dir content (video only)
60
66
run : tree -L 3 docs/source/_static/ -P '*.mp4'
67
+ - name : Clear cache
68
+ run : |
69
+ gh extension install actions/gh-actions-cache
70
+ gh actions-cache delete ${{ steps.cache-media-restore.outputs.cache-primary-key }} --confirm || true
71
+ env :
72
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
73
+ - name : Save media to cache
74
+ id : cache-media-save
75
+ uses : actions/cache/save@v3
76
+ with :
77
+ path : media
78
+ key : ${{ steps.cache-media-restore.outputs.cache-primary-key }}
61
79
- name : Build docs
62
80
run : cd docs && poetry run make html
63
81
- name : Upload artifact
You can’t perform that action at this time.
0 commit comments