Skip to content

Commit c6d9a2a

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

1 file changed

Lines changed: 10 additions & 27 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 10 additions & 27 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,33 +59,15 @@ 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
78-
with:
79-
python-version: '3.12'
80-
cache: 'pip'
81-
82-
- name: Install pip dependencies
83-
run: pip install -r requirements.txt
84-
62+
63+
- name: Verify Python version
64+
run: python3 --version
65+
8566
- name: Build html documentation
86-
run: cd ${{ matrix.manual.directory }} && make ${{ matrix.manual.make_target }}
67+
run: |
68+
pip install -r requirements.txt
69+
cd ${{ matrix.manual.directory }}
70+
make ${{ matrix.manual.make_target }}
8771
8872
- name: Compute PDF release version
8973
if: ${{ matrix.manual.build_pdf_path }}
@@ -101,7 +85,6 @@ jobs:
10185
env:
10286
DOCS_RELEASE: ${{ steps.pdf_version.outputs.release }}
10387
run: |
104-
set -e
10588
cd ${{ matrix.manual.directory }}
10689
make latexpdf
10790
ls -la ${{ matrix.manual.build_pdf_path }}

0 commit comments

Comments
 (0)