Skip to content

Commit cce2ff9

Browse files
committed
COMP: Always run the Doxygen check on PRs; cache the build tree
Dropping the pull_request paths filter lets the check become a required status without stranding filtered PRs. The build-doxygen cache trims the configure cost, and failures now also upload the effective Doxyfile alongside the warning log.
1 parent acd49c0 commit cce2ff9

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/doxygen.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: ITK.Doxygen.Warnings
22

3+
# pull_request intentionally has no paths-ignore: the check always runs, so it
4+
# can safely be made a required status without stranding filtered PRs.
35
on:
46
push:
57
branches:
@@ -13,13 +15,6 @@ on:
1315
- 'Utilities/ITKv5Preparation/**'
1416
- 'Utilities/Maintenance/**'
1517
pull_request:
16-
paths-ignore:
17-
- '*.md'
18-
- LICENSE
19-
- NOTICE
20-
- 'Utilities/Debugger/**'
21-
- 'Utilities/ITKv5Preparation/**'
22-
- 'Utilities/Maintenance/**'
2318

2419
concurrency:
2520
group: '${{ github.workflow }}@${{ github.head_ref || github.ref }}'
@@ -40,13 +35,23 @@ jobs:
4035
- name: Set up Pixi
4136
uses: prefix-dev/setup-pixi@v0.9.5
4237

38+
- name: Restore Doxygen build tree
39+
uses: actions/cache@v5
40+
with:
41+
path: build-doxygen
42+
key: doxygen-build-${{ hashFiles('CMakeLists.txt', 'CMake/**', 'Utilities/Doxygen/**', 'pyproject.toml', 'pixi.lock') }}
43+
restore-keys: |
44+
doxygen-build-
45+
4346
- name: Run warnings-only Doxygen pass
4447
run: pixi run doxygen-ci
4548

46-
- name: Upload warnings log
49+
- name: Upload warnings log and effective configuration
4750
if: failure()
4851
uses: actions/upload-artifact@v4
4952
with:
5053
name: doxygen-warnings
51-
path: build-doxygen/doxygen-warnings.log
54+
path: |
55+
build-doxygen/doxygen-warnings.log
56+
build-doxygen/Utilities/Doxygen/Doxyfile.Documentation
5257
if-no-files-found: ignore

0 commit comments

Comments
 (0)