-
Notifications
You must be signed in to change notification settings - Fork 15
42 lines (36 loc) · 1.37 KB
/
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
name: Main workflow
on:
- push
- workflow_dispatch
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.08.x
- 4
- 5
include:
- ocaml-compiler: 4.08.x
packages: 'ppx_protocol_conv.opam ppx_protocol_conv_json.opam ppx_protocol_conv_msgpack.opam ppx_protocol_conv_xmlm.opam ppx_protocol_conv_yaml.opam ppx_protocol_conv_xml_light.opam'
- ocaml-compiler: 4
packages: 'ppx_protocol_conv.opam ppx_protocol_conv_json.opam ppx_protocol_conv_msgpack.opam ppx_protocol_conv_xmlm.opam ppx_protocol_conv_yaml.opam ppx_protocol_conv_xml_light.opam'
- ocaml-compiler: 5
packages: 'ppx_protocol_conv.opam ppx_protocol_conv_json.opam ppx_protocol_conv_msgpack.opam ppx_protocol_conv_xmlm.opam ppx_protocol_conv_yaml.opam'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-local-packages: ${{ matrix.packages }}
- run: opam pin . --no-action
- run: |
for package in ${{ matrix.packages }}; do
opam install ${package/.opam/} --with-doc --with-test
done