Skip to content

Main workflow

Main workflow #189

Workflow file for this run

name: Main workflow
on:
pull_request:
push:
schedule:
- cron: 5 10 * * 3
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- 4.10.x
- 4.11.x
- 4.12.x
- 4.13.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-local-packages: libdash/*.opam
- name: Install dependencies
run: opam install libdash ocamlfind ocamlbuild num zarith lem 'extunix<0.4'
- name: Build smoosh, run unit tests
run: |
opam exec -- make -C src all all.byte
make -C src/ test
- name: Run smoosh integration tests
run: |
ulimit -n
for fd in $(seq 3 20); do eval "exec $fd>&-"; done
PATH="$(pwd)/src:$PATH" TEST_DEBUG=1 TEST_TIMEOUT=15 make -C tests/ test