Skip to content

Commit 4b17726

Browse files
committed
fixup! fixup! chore(ci): faster build
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent bb743b5 commit 4b17726

1 file changed

Lines changed: 4 additions & 29 deletions

File tree

.github/workflows/sphinxbuild.yml

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

61-
- name: Cache LaTeX apt packages
62-
if: ${{ matrix.manual.build_pdf_path }}
63-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
61+
- name: Cache and install apt packages
62+
uses: awalsh128/cache-apt-pkgs-action@acb598e5ddbc6f68a970c5da0688d2f3a9f04d05 # v1.6.0
6463
with:
65-
path: /var/cache/apt/archives
66-
key: latex-apt-${{ runner.os }}-${{ hashFiles('.github/workflows/*.yml') }}
67-
restore-keys: |
68-
latex-apt-${{ runner.os }}-
69-
70-
- name: Fix apt cache permissions
71-
if: ${{ matrix.manual.build_pdf_path }}
72-
run: sudo chmod -R a+r /var/cache/apt/archives
73-
74-
- name: Install LaTeX dependencies
75-
if: ${{ matrix.manual.build_pdf_path }}
76-
run: |
77-
sudo DEBIAN_FRONTEND=noninteractive apt-get update
78-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
79-
--no-install-recommends \
80-
python3-pil \
81-
python3-pip \
82-
texlive-fonts-recommended \
83-
latexmk \
84-
texlive-latex-extra \
85-
texlive-latex-recommended \
86-
texlive-xetex \
87-
texlive-fonts-extra-links \
88-
texlive-fonts-extra \
89-
xindy
90-
sudo chmod -R a+r /var/cache/apt/archives
64+
packages: python3-pil python3-pip texlive-fonts-recommended latexmk texlive-latex-extra texlive-latex-recommended texlive-xetex texlive-fonts-extra-links texlive-fonts-extra xindy
65+
version: 1.0
9166

9267
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
9368
with:

0 commit comments

Comments
 (0)