File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,11 +58,25 @@ jobs:
5858 - name : Checkout repository
5959 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6060
61+ - name : Allow apt cache write access for caching
62+ if : ${{ matrix.manual.build_pdf_path }}
63+ run : sudo chmod -R a+rw /var/cache/apt/archives
64+
65+ - name : Cache LaTeX apt packages
66+ if : ${{ matrix.manual.build_pdf_path }}
67+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
68+ with :
69+ path : /var/cache/apt/archives
70+ key : latex-apt-${{ runner.os }}-${{ hashFiles('.github/workflows/sphinxbuild.yml') }}
71+ restore-keys : |
72+ latex-apt-${{ runner.os }}-
73+
6174 - name : Install LaTeX dependencies
6275 if : ${{ matrix.manual.build_pdf_path }}
6376 run : |
6477 sudo DEBIAN_FRONTEND=noninteractive apt-get update
6578 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
79+ --no-install-recommends \
6680 python3-pil \
6781 python3-pip \
6882 texlive-fonts-recommended \
You can’t perform that action at this time.
0 commit comments