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,27 @@ jobs:
5858 - name : Checkout repository
5959 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6060
61+ - name : Configure apt cache to use /dev/shm
62+ if : ${{ matrix.manual.build_pdf_path }}
63+ run : |
64+ mkdir -p /dev/shm/apt/cache/archives
65+ echo 'Dir::Cache::archives "/dev/shm/apt/cache/archives";' | sudo tee /etc/apt/apt.conf.d/apt-cache-shm
66+
67+ - name : Cache LaTeX apt packages
68+ if : ${{ matrix.manual.build_pdf_path }}
69+ uses : actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
70+ with :
71+ path : /dev/shm/apt/cache/archives
72+ key : latex-apt-${{ runner.os }}-${{ hashFiles('.github/workflows/sphinxbuild.yml') }}
73+ restore-keys : |
74+ latex-apt-${{ runner.os }}-
75+
6176 - name : Install LaTeX dependencies
6277 if : ${{ matrix.manual.build_pdf_path }}
6378 run : |
6479 sudo DEBIAN_FRONTEND=noninteractive apt-get update
6580 sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
81+ --no-install-recommends \
6682 python3-pil \
6783 python3-pip \
6884 texlive-fonts-recommended \
7490 texlive-fonts-extra \
7591 xindy
7692
93+ - name : Fix apt cache ownership for caching
94+ if : ${{ matrix.manual.build_pdf_path }}
95+ run : sudo chown -R $(id -u):$(id -g) /dev/shm/apt/cache/archives
96+
7797 - uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
7898 with :
7999 python-version : ' 3.12'
You can’t perform that action at this time.
0 commit comments