2021-05-24 11:45:29 +00:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
# Controls when the action will run.
|
|
|
|
on:
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-05-24 11:56:42 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- macos-latest
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
ocaml-compiler:
|
|
|
|
- 4.12.x
|
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
2021-05-24 11:45:29 +00:00
|
|
|
|
|
|
|
steps:
|
2021-05-24 11:56:42 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Use OCaml ${{ matrix.ocaml-compiler }}
|
|
|
|
uses: ocaml/setup-ocaml@v2
|
|
|
|
with:
|
|
|
|
ocaml-compiler: ${{ matrix.ocaml-compiler }}
|
2021-05-24 11:45:29 +00:00
|
|
|
|
2021-05-24 11:56:42 +00:00
|
|
|
- run: opam install . --deps-only
|
2021-05-24 11:45:29 +00:00
|
|
|
|
2021-05-24 11:56:42 +00:00
|
|
|
- run: opam exec -- dune build
|