Skip to content

Commit dcd4ed5

Browse files
committed
chore(ci): faster build
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 434416e commit dcd4ed5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \

0 commit comments

Comments
 (0)