Skip to content

Commit

Permalink
CI: Run the driver
Browse files Browse the repository at this point in the history
  • Loading branch information
Julow committed Sep 30, 2024
1 parent f3b0823 commit 449a3c8
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
opam-pin: false
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-local-packages: |
odoc.opam
odoc-parser.opam odoc.opam
- name: Install dependencies
run: opam install -y --deps-only -t ./odoc.opam ./odoc-parser.opam
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/driver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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
echo "Generated $(find _html -name '*.html' | wc -l) pages"

0 comments on commit 449a3c8

Please sign in to comment.