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: Run the driver #1203

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
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
37 changes: 37 additions & 0 deletions .github/workflows/driver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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@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
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"
Loading