-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |