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 #4

Closed
wants to merge 4 commits 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
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
os:
- ubuntu-latest
ocaml-compiler:
- 4.02.x
- 4.04.x
- 4.06.x
- 4.08.x
- 4.10.x
- 4.12.x
- 4.14.x
- 5.0.x
- 5.1.x
# - 4.02.x
# - 4.04.x
# - 4.06.x
# - 4.08.x
# - 4.10.x
# - 4.12.x
# - 4.14.x
# - 5.0.x
# - 5.1.x
include:
- os: ubuntu-latest
ocaml-compiler: 5.1.x
Expand All @@ -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
38 changes: 38 additions & 0 deletions .github/workflows/driver.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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
ls _html
echo "Generated $(find _html -name '*.html' | wc -l) pages"
4 changes: 4 additions & 0 deletions odoc-driver.opam
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ depends: [
"eio_main"
"progress"
"cmdliner"
"sherlodoc"
]

build: [
Expand All @@ -60,3 +61,6 @@ build: [
"@doc" {with-doc}
]
]
pin-depends: [
[ "sherlodoc.dev" "git+https://github.com/art-w/sherlodoc#0357233acf56936db6760cba573f7e77750b5428"]
]
Loading