Skip to content

Commit 27674af

Browse files
vobolgusclaude
andcommitted
Кэш экстернализированных tikz-рисунков в CI
Папка tikz/resource в CI создавалась пустой, и \tikzexternalize перерисовывал все 188 рисунков на каждом прогоне (~15 из 17 минут сборки). Теперь папка кэшируется через actions/cache, перерисовываются только изменённые рисунки. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 7ff4a60 commit 27674af

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/on_commit_not_master.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
uses: actions/checkout@v4
1212
- name: Create resources folder
1313
run: mkdir -p tikz/resource
14+
- name: Cache externalized tikz figures
15+
uses: actions/cache@v4
16+
with:
17+
path: tikz/resource
18+
key: tikz-${{ hashFiles('astro-notebook.tex', 'sections/**', 'sys/**/*.tex', 'style/**') }}
19+
restore-keys: tikz-
1420
- name: Compile LaTeX document
1521
uses: xu-cheng/latex-action@v3
1622
with:

.github/workflows/on_commit_to_master.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
uses: actions/checkout@v4
1212
- name: Create resources folder
1313
run: mkdir -p tikz/resource
14+
- name: Cache externalized tikz figures
15+
uses: actions/cache@v4
16+
with:
17+
path: tikz/resource
18+
key: tikz-${{ hashFiles('astro-notebook.tex', 'sections/**', 'sys/**/*.tex', 'style/**') }}
19+
restore-keys: tikz-
1420
- name: Compile LaTeX document
1521
uses: xu-cheng/latex-action@v3
1622
with:

0 commit comments

Comments
 (0)