-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (36 loc) · 1015 Bytes
/
ci.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
on:
pull_request:
push:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
ocaml-version: [
4.07.0, 4.07.1, 4.08.0, 4.08.1, 4.09.0, 4.09.1, 4.10.0, 4.10.1,
4.10.2, 4.11.0, 4.11.1, 4.11.2, 4.12.0, 4.13.0, 4.13.1
]
runs-on: "ubuntu-latest"
steps:
- name: "Checking out the repo..."
uses: actions/checkout@v2
- name: "Recovering cached opam files..."
uses: actions/cache@v2
with:
path: ~/.opam
key: ${{ runner.os }}-ocaml-${{ matrix.ocaml-version }}
- name: "Setting up opam..."
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}
- name: "Installing dependencies..."
run: |
eval $(opam env)
opam update
opam pin add -n -k path subml .
opam install --deps-only -d -t subml
- name: "Running tests..."
run: |
eval $(opam env)
make tests