forked from ocaml/odoc
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 872 Bytes
/
driver.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
name: "Driver"
on:
- push
- pull_request
jobs:
build: # Check build on various OSes
strategy:
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 5.2.x
runs-on: ${{ matrix.os }}
steps:
# Clone the project
- uses: actions/checkout@v2
# Setup
- name: Setup OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-local-packages: odoc-parser.opam odoc.opam odoc-driver.opam
- name: Install dependencies
run: opam install -y --deps-only -t ./odoc-parser.opam ./odoc.opam ./odoc-driver.opam
- name: Run the driver
run: |
opam exec -- dune exec -- odoc_driver -p odoc
ls _html
echo "Generated $(find _html -name '*.html' | wc -l) pages"