albatross/.github/workflows/build.yml

34 lines
727 B
YAML
Raw Normal View History

name: Albatross
on: [push, pull_request]
jobs:
tests:
name: Tests
strategy:
fail-fast: false
matrix:
ocaml-version: ["4.11.1", "4.10.1", "4.09.0", "4.08.1"]
operating-system: [ubuntu-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}
- name: Install dependencies
run: |
opam pin add -n albatross .
opam depext -y albatross
opam install -t --deps-only .
- name: Build
run: opam exec -- dune build