Add CI #124
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
name: Builds, tests & co | |
on: | |
# Triggers the workflow on push or pull request events but only for the "main" branch | |
push: | |
branches: [ "dev", "ci" ] | |
pull_request: | |
branches: [ "dev", "ci" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
permissions: read-all | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set-up OCaml ${{ matrix.ocaml-compiler }} | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: "5.1" | |
- run: opam install . --deps-only --with-test | |
- run: opam exec -- dune build | |
- run: opam exec -- dune runtest |