Skip to content

Commit e7e2768

Browse files
committed
Add CI job to verify ex_doc build
1 parent 8399abc commit e7e2768

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff 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/

0 commit comments

Comments
 (0)