@@ -17,9 +17,6 @@ permissions:
17
17
env :
18
18
# NOTE: west docstrings will be extracted from the version listed here
19
19
WEST_VERSION : 1.2.0
20
- # The latest CMake available directly with apt is 3.18, but we need >=3.20
21
- # so we fetch that through pip.
22
- CMAKE_VERSION : 3.20.5
23
20
DOXYGEN_VERSION : 1.12.0
24
21
DOXYGEN_MD5SUM : fd96a5defa535dfe2e987b46540844a4
25
22
JOB_COUNT : 4
@@ -188,50 +185,48 @@ jobs:
188
185
needs : [doc-file-check]
189
186
if : |
190
187
github.event_name != 'pull_request'
191
- runs-on : ubuntu-22.04
192
- container : texlive/texlive:latest
188
+ runs-on : ubuntu-24.04
193
189
timeout-minutes : 120
194
190
concurrency :
195
191
group : doc-build-pdf-${{ github.ref }}
196
192
cancel-in-progress : true
197
193
198
194
steps :
199
- - name : Apply container owner mismatch workaround
200
- run : |
201
- git config --global --add safe.directory ${GITHUB_WORKSPACE}
202
-
203
195
- name : checkout
204
196
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
197
+ with :
198
+ path : zephyr
205
199
206
200
- name : install-pkgs
207
201
run : |
208
- apt-get update
209
- apt-get install -y python3-pip python3-venv ninja-build doxygen graphviz librsvg2-bin imagemagick
202
+ sudo apt-get update
203
+ sudo apt-get install --no-install-recommends graphviz librsvg2-bin \
204
+ texlive-latex-base texlive-latex-extra latexmk \
205
+ texlive-fonts-recommended texlive-fonts-extra texlive-xetex \
206
+ imagemagick fonts-noto xindy
207
+ wget --no-verbose "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz"
208
+ echo "${DOXYGEN_MD5SUM} doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" | md5sum -c
209
+ if [ $? -ne 0 ]; then
210
+ echo "Failed to verify doxygen tarball"
211
+ exit 1
212
+ fi
213
+ sudo tar xf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz -C /opt
214
+ echo "/opt/doxygen-${DOXYGEN_VERSION}/bin" >> $GITHUB_PATH
210
215
211
- - name : cache-pip
212
- uses : actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
216
+ - name : Setup Zephyr project
217
+ uses : zephyrproject-rtos/action-zephyr-setup@f7b70269a8eb01f70c8e710891e4c94972a2f6b4 # v1.0.6
213
218
with :
214
- path : ~/.cache/pip
215
- key : pip-${{ hashFiles('doc/requirements.txt') }}
216
-
217
- - name : setup-venv
218
- run : |
219
- python3 -m venv .venv
220
- . .venv/bin/activate
221
- echo PATH=$PATH >> $GITHUB_ENV
219
+ app-path : zephyr
220
+ toolchains : ' arm-zephyr-eabi'
222
221
223
- - name : install-pip
222
+ - name : install-pip-pkgs
223
+ working-directory : zephyr
224
224
run : |
225
225
pip install -r doc/requirements.txt
226
- pip install west==${WEST_VERSION}
227
- pip install cmake==${CMAKE_VERSION}
228
-
229
- - name : west setup
230
- run : |
231
- west init -l .
232
226
233
227
- name : build-docs
234
228
shell : bash
229
+ working-directory : zephyr
235
230
continue-on-error : true
236
231
run : |
237
232
if [[ "$GITHUB_REF" =~ "refs/tags/v" ]]; then
@@ -252,8 +247,8 @@ jobs:
252
247
name : pdf-output
253
248
if-no-files-found : ignore
254
249
path : |
255
- doc/_build/latex/zephyr.pdf
256
- doc/_build/latex/zephyr.log
250
+ zephyr/ doc/_build/latex/zephyr.pdf
251
+ zephyr/ doc/_build/latex/zephyr.log
257
252
258
253
doc-build-status-check :
259
254
if : always()
0 commit comments