Skip to content

Commit

Permalink
Introduce caching of files
Browse files Browse the repository at this point in the history
Caching can be an important performance boost.
With no caching, LaTeX has to regenerate all auxiliary files,
including glossary and bib files, every time.
This also applies to SVG files that were automatically
converted to PDF using the svg package (with inkscape
in the background). Discarding these PDFs each time is also
costly.

Existing auxiliary files help latexmk finish in fewer runs.

In a first attempt, caching reduced pipeline run times by 50%.
  • Loading branch information
alexpovel committed Oct 31, 2020
1 parent b4a9881 commit 28aea76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ build_latex:
stage: build
script:
- make tex
cache:
untracked: true
key: "$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"

build_pandoc:
stage: build
Expand Down

0 comments on commit 28aea76

Please sign in to comment.