Skip to content

Merge pull request #1 from tiferrei/fix/ocaml-5 #1

Merge pull request #1 from tiferrei/fix/ocaml-5

Merge pull request #1 from tiferrei/fix/ocaml-5 #1

Workflow file for this run

name: Builds, tests & co
on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
permissions: read-all
jobs:
build:
strategy:
fail-fast: true
matrix:
ocaml-compiler:
- "4.14"
- "5.1"
runs-on: ubuntu-latest
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Install Z3
uses: pavpanchekha/[email protected]
with:
version: 4.12.2
architecture: x64
distribution: glibc-2.31
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install dependencies (nerode)
working-directory: ./nerode
run: opam install . --deps-only --with-test
- name: Build (nerode)
working-directory: ./nerode
run: opam exec -- dune build
- name: Test (nerode)
working-directory: ./nerode
run: opam exec -- dune test
- name: Install (nerode)
working-directory: ./nerode
run: opam exec -- dune install
- name: Install dependencies (nerode-learn)
working-directory: ./nerode-learn
run: opam install . --deps-only --with-test && opam pin add z3 https://github.com/mdmoeller/ocaml-z3.git
- name: Build (nerode-learn)
working-directory: ./nerode-learn
run: opam exec -- dune build
- name: Test (nerode-learn)
working-directory: ./nerode-learn
run: opam exec -- dune test