-
Notifications
You must be signed in to change notification settings - Fork 25
49 lines (37 loc) · 1017 Bytes
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Main workflow
on:
- pull_request
- push
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-version:
- 5.1.0~rc1
- 5.0.0
- 4.14.0
- 4.13.1
- 4.12.1
- 4.11.2
- 4.10.2
- 4.09.1
- 4.08.1
runs-on: ${{ matrix.os }}
env:
OPAMCONFIRMLEVEL: unsafe-yes
steps:
- name: Checkout code
uses: actions/checkout@v2
- run: echo | sh <(curl -sL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh) --dev
- run: sudo apt-get install bubblewrap
- run: opam init --compiler ${{ matrix.ocaml-version }}
- run: opam install --deps-only . --with-test --with-doc
- run: opam exec -- dune build @install
- run: opam exec -- dune build @runtest
- run: opam exec -- dune build @doc
- run: opam install .
- run: opam reinstall -t .
- run: opam reinstall -d .