Skip to content

Commit 73544ee

Browse files
committed
chore: cache latex dependencies setup step
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent dbc524f commit 73544ee

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,20 @@ jobs:
5858
- name: Checkout repository
5959
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6060

61+
- name: Cache LaTeX apt packages
62+
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
63+
with:
64+
path: /var/cache/apt/archives
65+
key: latex-apt-${{ runner.os }}-${{ hashFiles('.github/workflows/sphinxbuild.yml') }}
66+
restore-keys: |
67+
latex-apt-${{ runner.os }}
68+
6169
- name: Install LaTeX dependencies
6270
if: ${{ matrix.manual.build_pdf_path }}
6371
run: |
6472
sudo DEBIAN_FRONTEND=noninteractive apt-get update
6573
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
74+
--no-install-recommends \
6675
python3-pil \
6776
python3-pip \
6877
texlive-fonts-recommended \

0 commit comments

Comments
 (0)