Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(bindings/ocaml): add doc #3208

Merged
merged 3 commits into from
Sep 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,31 @@ jobs:
name: cpp-docs
path: ./bindings/cpp/build/docs_doxygen/html

build-ocaml-doc:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Setup Rust toolchain
uses: ./.github/actions/setup

- name: Setup OCaml toolchain
uses: ./.github/actions/setup-ocaml

- name: Build OCaml docs
working-directory: "bindings/ocaml"
run: |
opam install -y dune odoc
eval $(opam env)
dune build @doc

- name: Upload docs
uses: actions/upload-artifact@v3
with:
name: ocaml-docs
path: ./bindings/ocaml/_build/default/_doc/_html

build-website:
runs-on: ubuntu-latest
needs:
Expand All @@ -255,6 +280,7 @@ jobs:
- build-lua-doc
- build-haskell-doc
- build-cpp-doc
- build-ocaml-doc

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -317,6 +343,12 @@ jobs:
name: cpp-docs
path: ./website/static/docs/cpp

- name: Download ocaml docs
uses: actions/download-artifact@v3
with:
name: ocaml-docs
path: ./website/static/docs/ocaml

- name: Install Dependencies
working-directory: website
run: yarn install --immutable
Expand Down