Skip to content

Commit 4784207

Browse files
committed
ci: docs workflow to preview documentation
Signed-off-by: Larry Gritz <[email protected]>
1 parent b1b77ef commit 4784207

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

.github/workflows/docs.yml

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
# Copyright Contributors to the Open Shading Language project.
2+
# SPDX-License-Identifier: BSD-3-Clause
3+
# https://github.com/AcademySoftwareFoundation/OpenShadingLanguage
4+
5+
name: docs
6+
7+
on:
8+
push:
9+
# Skip jobs when only cpp files are changed. The materials for
10+
# docs are all in md, rst, and .h files.
11+
paths-ignore:
12+
- '**/ci.yml'
13+
- '**/analysis.yml'
14+
- '**/scorecard.yml'
15+
- '**.properties'
16+
- 'src/**.cpp'
17+
- '**.cmake'
18+
- '**/CMakeLists.txt'
19+
- '**/run.py'
20+
pull_request:
21+
paths-ignore:
22+
- '**/ci.yml'
23+
- '**/analysis.yml'
24+
- '**/scorecard.yml'
25+
- '**.properties'
26+
- 'src/**.cpp'
27+
- '**.cmake'
28+
- '**/CMakeLists.txt'
29+
- '**/run.py'
30+
schedule:
31+
# Full nightly build
32+
- cron: "0 8 * * *"
33+
if: github.repository == 'AcademySoftwareFoundation/OpenShadingLanguage'
34+
workflow_dispatch:
35+
# This allows manual triggering of the workflow from the web
36+
37+
permissions: read-all
38+
39+
# Allow subsequent pushes to the same PR or REF to cancel any previous jobs.
40+
concurrency:
41+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
42+
cancel-in-progress: true
43+
44+
45+
jobs:
46+
docs:
47+
name: "Docs / ${{matrix.desc}}"
48+
uses: ./.github/workflows/build-steps.yml
49+
with:
50+
nametag: ${{ matrix.nametag || 'unnamed!' }}
51+
runner: ${{ matrix.runner || 'ubuntu-latest' }}
52+
container: ${{ matrix.container }}
53+
cc_compiler: ${{ matrix.cc_compiler }}
54+
cxx_compiler: ${{ matrix.cxx_compiler }}
55+
cxx_std: ${{ matrix.cxx_std || '17' }}
56+
build_type: ${{ matrix.build_type || 'Release' }}
57+
depcmds: ${{ matrix.depcmds }}
58+
extra_artifacts: ${{ matrix.extra_artifacts }}
59+
fmt_ver: ${{ matrix.fmt_ver }}
60+
opencolorio_ver: ${{ matrix.opencolorio_ver }}
61+
openexr_ver: ${{ matrix.openexr_ver }}
62+
pybind11_ver: ${{ matrix.pybind11_ver }}
63+
python_ver: ${{ matrix.python_ver }}
64+
setenvs: ${{ matrix.setenvs }}
65+
simd: ${{ matrix.simd }}
66+
skip_build: ${{ matrix.skip_build }}
67+
skip_tests: ${{ matrix.skip_tests }}
68+
abi_check: ${{ matrix.abi_check }}
69+
build_docs: ${{ matrix.build_docs }}
70+
generator: ${{ matrix.generator }}
71+
ctest_args: ${{ matrix.ctest_args }}
72+
ctest_test_timeout: ${{ matrix.ctest_test_timeout }}
73+
coverage: ${{ matrix.coverage || '0' }}
74+
sonar: ${{ matrix.sonar || '0' }}
75+
76+
strategy:
77+
fail-fast: false
78+
matrix:
79+
include:
80+
- desc: docs
81+
nametag: docslinux
82+
runner: ubuntu-24.04
83+
container: aswftesting/ci-openexr:2024
84+
vfxyear: 2024
85+
cxx_std: 17
86+
python_ver: "3.11"
87+
build_docs: 1
88+
skip_build: 1
89+
skip_tests: 1
90+
setenvs: export EXTRA_DEP_PACKAGES="doxygen sphinx-doc"
91+
PIP_INSTALLS="sphinx breathe==4.34.0 sphinx-tabs furo==2022.6.21"
92+
SKIP_SYSTEM_DEPS_INSTALL=1
93+
USE_OPENCV=0 USE_FFMPEG=0 USE_FREETYPE=0
94+
USE_LIBHEIF=0 QT_VERSION=0 PYBIND11_VERSION=0

0 commit comments

Comments
 (0)