Skip to content

Commit

Permalink
Run the driver in CI
Browse files Browse the repository at this point in the history
The driver runs on Base. This will also test that sherlodoc is
co-installable with odoc.
  • Loading branch information
Julow committed Oct 9, 2024
1 parent f90579f commit 1a48b36
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/driver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "Driver"

on:
- 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@v4
with:
submodules: true

# 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 sherlodoc/sherlodoc.opam

- name: Install dependencies
run: |
opam install -y --deps-only -t ./odoc-parser.opam ./odoc.opam ./odoc-driver.opam sherlodoc/sherlodoc.opam
opam install -y base # Input to the driver
- name: Run the driver
run: |
opam exec -- dune exec -- odoc_driver -p base
echo "Generated $(find _html -name '*.html' | wc -l) pages"

0 comments on commit 1a48b36

Please sign in to comment.