Skip to content

Commit cd69fe8

Browse files
committed
ci: docs: build doxygen documentation in a matrix including latest version
Add a matrix to the docs workflow to build the documentation with latest Doxygen version too. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent f7c49db commit cd69fe8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,19 @@ name: Documentation
55

66
on: [push, pull_request]
77

8-
env:
9-
DOXYGEN_VERSION: 1.9.6
10-
118
jobs:
129
build:
1310
runs-on: ubuntu-22.04
11+
strategy:
12+
matrix:
13+
doxygen-version: [1.9.6, 1.14.0]
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
1717

1818
- name: Install dependencies
1919
run: |
20+
DOXYGEN_VERSION="${{ matrix.doxygen-version }}"
2021
wget --no-verbose "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz"
2122
tar xf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
2223
echo "${PWD}/doxygen-${DOXYGEN_VERSION}/bin" >> $GITHUB_PATH
@@ -34,11 +35,11 @@ jobs:
3435
mv _build_sphinx/html/* deploy
3536
3637
- name: Setup pages
37-
if: github.event_name != 'pull_request'
38+
if: github.event_name != 'pull_request' && matrix.doxygen-version == '1.14.0'
3839
uses: actions/configure-pages@v4
3940

4041
- name: Upload pages artifact
41-
if: github.event_name != 'pull_request'
42+
if: github.event_name != 'pull_request' && matrix.doxygen-version == '1.14.0'
4243
uses: actions/upload-pages-artifact@v3
4344
with:
4445
path: doc/deploy
@@ -47,6 +48,7 @@ jobs:
4748
if: github.event_name == 'pull_request'
4849
uses: actions/upload-artifact@v4
4950
with:
51+
name: docs-doxygen-${{ matrix.doxygen-version }}
5052
path: doc/deploy
5153

5254
deploy:

0 commit comments

Comments
 (0)