Skip to content

Create ocaml_ci.yml

Create ocaml_ci.yml #2

Workflow file for this run

name: Builds, tests & co
on:
pull_request:
branches: [ "main", "dev" ]
push:
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ocaml-compiler:
- "4.14"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build @fmt
- run: opam exec -- dune runtest