Skip to content

Commit

Permalink
ci: doc: always report status
Browse files Browse the repository at this point in the history
Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Feb 19, 2024
1 parent b2b4016 commit 83a394f
Showing 1 changed file with 37 additions and 14 deletions.
51 changes: 37 additions & 14 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,6 @@ on:
tags:
- v*
pull_request:
paths:
- 'doc/**'
- '**.rst'
- 'include/**'
- 'kernel/include/kernel_arch_interface.h'
- 'lib/libc/**'
- 'subsys/testsuite/ztest/include/**'
- 'tests/**'
- '**/Kconfig*'
- 'west.yml'
- '.github/workflows/doc-build.yml'
- 'scripts/dts/**'
- 'doc/requirements.txt'

env:
# NOTE: west docstrings will be extracted from the version listed here
Expand All @@ -33,9 +20,37 @@ env:
DOXYGEN_VERSION: 1.9.6

jobs:
doc-file-check:
runs-on: ubuntu-22.04
if: >
github.repository_owner == 'zephyrproject-rtos'
outputs:
file_check: %{{steps.check-doc-files.outputs.any_changed}}
steps:
- name: Check if Documentation related files changed
uses: tj-actions/changed-files@v41
id: check-doc-files
with:
files:
doc/**
**.rst
include/**
kernel/include/kernel_arch_interface.h
lib/libc/**
subsys/testsuite/ztest/include/**
tests/**
**/Kconfig*
west.yml
.github/workflows/doc-build.yml
scripts/dts/**
doc/requirements.txt

doc-build-html:
name: "Documentation Build (HTML)"
if: github.repository_owner == 'zephyrproject-rtos'
needs: [doc-file-check]
if: >
github.repository_owner == 'zephyrproject-rtos'
&& ${{fromJSON(steps.check-doc-files.outputs.any_changed}} == 'true'
runs-on: zephyr-runner-linux-x64-4xlarge
timeout-minutes: 45
concurrency:
Expand Down Expand Up @@ -217,3 +232,11 @@ jobs:
path: |
doc/_build/latex/zephyr.pdf
doc/_build/latex/zephyr.log
doc-build-pass:
name: "Documentation Build Passed"
runs-on: ubuntu-22.04
needs: [doc-file-check]
steps:
- name: doc-check
run: echo "Documentation build Passed"

0 comments on commit 83a394f

Please sign in to comment.