File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -218,3 +218,40 @@ jobs:
218218
219219 - name : Run dialyzer
220220 run : rebar3 dialyzer
221+
222+ docs :
223+ name : Documentation
224+ runs-on : ubuntu-24.04
225+
226+ steps :
227+ - name : Checkout
228+ uses : actions/checkout@v4
229+
230+ - name : Set up Erlang
231+ uses : erlef/setup-beam@v1
232+ with :
233+ otp-version : " 27.0"
234+ rebar3-version : " 3.24"
235+
236+ - name : Set up Python
237+ uses : actions/setup-python@v5
238+ with :
239+ python-version : " 3.12"
240+
241+ - name : Set Python library path
242+ run : |
243+ PYTHON_LIB=$(python3 -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
244+ echo "LD_LIBRARY_PATH=${PYTHON_LIB}:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
245+
246+ - name : Compile
247+ run : rebar3 compile
248+
249+ - name : Build documentation
250+ run : rebar3 ex_doc
251+
252+ - name : Verify doc artifacts
253+ run : |
254+ test -d doc || (echo "doc directory not created" && exit 1)
255+ test -f doc/index.html || (echo "doc/index.html not found" && exit 1)
256+ echo "Documentation built successfully"
257+ ls -la doc/
You can’t perform that action at this time.
0 commit comments