Skip to content

[build] [wip] Support for the dune build system v2 #131

[build] [wip] Support for the dune build system v2

[build] [wip] Support for the dune build system v2 #131

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- master
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
ocaml-compiler:
- "4.14"
- "5.2"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --with-test --deps-only
- name: install deps
run: opam install . --deps-only --with-test --yes
- name: Build
run: opam exec -- dune build
- name: Run the testsuite
run: opam exec -- dune runtest
- run: opam install . --with-test
- run: opam exec -- git diff --exit-code