Skip to content

Commit 6da0c36

Browse files
committed
Revert "try(ci): remove cache for media"
This reverts commit 3b01efa.
1 parent 3b01efa commit 6da0c36

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/pages.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ jobs:
4848
sudo apt-get install libcairo2-dev libpango1.0-dev ffmpeg freeglut3-dev
4949
- name: Install local Python package
5050
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
5157
- name: Build animations
5258
run: |
5359
poetry run manim example.py ConvertExample BasicExample ThreeDExample
@@ -58,6 +64,18 @@ jobs:
5864
poetry run manim-slides convert -v DEBUG ThreeDExample docs/source/_static/three_d_example.html -ccontrols=true
5965
- name: Show docs/source/_static/ dir content (video only)
6066
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 }}
6179
- name: Build docs
6280
run: cd docs && poetry run make html
6381
- name: Upload artifact

0 commit comments

Comments
 (0)