Skip to content

upgrade core

upgrade core #410

Workflow file for this run

name: CI
on:
- pull_request
- push
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- 4.11.x
- 4.12.x
- 4.13.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: ${{ matrix.os != 'macos-latest' }}
opam-depext-flags: --with-test
- name: Setup Erlang
if: ${{ matrix.os == 'macos-latest' }}
run: brew install erlang
- name: Install opam packages
run: opam install . --deps-only --with-test
- name: Build Sesterl
run: opam exec -- make all
- name: Run unit tests
run: opam exec -- make test-unit
- name: Run positive blackbox tests
run: opam exec -- make test-blackbox-positive
- name: Run negative blackbox tests
run: opam exec -- make test-blackbox-negative
- name: Upload compiler artifact
if: ${{ matrix.ocaml-compiler == '4.13.x' }}
uses: actions/upload-artifact@v2
with:
name: sesterl-${{ matrix.os }}
path: sesterl