Skip to content

Commit 8d5d99e

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

1 file changed

Lines changed: 8 additions & 20 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515

1616
name: Build ${{ matrix.manual.name }}
1717
runs-on: ubuntu-latest
18+
container:
19+
image: ghcr.io/nextcloud/continuous-integration-documentation:documentation-16
1820

1921
strategy:
2022
matrix:
@@ -57,24 +59,9 @@ jobs:
5759
5860
- name: Checkout repository
5961
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
60-
61-
- name: Install LaTeX dependencies
62-
if: ${{ matrix.manual.build_pdf_path }}
63-
run: |
64-
sudo DEBIAN_FRONTEND=noninteractive apt-get update
65-
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
66-
python3-pil \
67-
python3-pip \
68-
texlive-fonts-recommended \
69-
latexmk \
70-
texlive-latex-extra \
71-
texlive-latex-recommended \
72-
texlive-xetex \
73-
texlive-fonts-extra-links \
74-
texlive-fonts-extra \
75-
xindy
76-
77-
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
62+
63+
- name: Setup python
64+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
7865
with:
7966
python-version: '3.12'
8067
cache: 'pip'
@@ -83,7 +70,9 @@ jobs:
8370
run: pip install -r requirements.txt
8471

8572
- name: Build html documentation
86-
run: cd ${{ matrix.manual.directory }} && make ${{ matrix.manual.make_target }}
73+
run: |
74+
cd ${{ matrix.manual.directory }}
75+
make ${{ matrix.manual.make_target }}
8776
8877
- name: Compute PDF release version
8978
if: ${{ matrix.manual.build_pdf_path }}
@@ -101,7 +90,6 @@ jobs:
10190
env:
10291
DOCS_RELEASE: ${{ steps.pdf_version.outputs.release }}
10392
run: |
104-
set -e
10593
cd ${{ matrix.manual.directory }}
10694
make latexpdf
10795
ls -la ${{ matrix.manual.build_pdf_path }}

0 commit comments

Comments
 (0)