Skip to content

Commit 3407382

Browse files
authored
Merge pull request #14200 from nextcloud/workflow/update-.github/workflows/sphinxbuild.yml-stable33
2 parents b5d68a1 + 5652f4a commit 3407382

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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 \
@@ -74,6 +90,10 @@ jobs:
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'

0 commit comments

Comments
 (0)