-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 951 Bytes
/
build-odoc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: build-odoc
on:
push:
branches:
- main
jobs:
deploy:
name: Build odoc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install sdl2 dependencies
run: |
sudo add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse"
sudo apt-get update -y -qq
sudo apt-get install libsdl2-dev libsdl2-image-dev
- name: Use OCaml 5.0.x
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 5.0.x
dune-cache: true
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
- run: opam install . --deps-only --with-doc
shell: bash
- run: opam depext --install odoc
shell: bash
- run: opam exec -- dune build @doc
shell: bash
- name: Lint doc
uses: ocaml/setup-ocaml/lint-doc@v2