-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (37 loc) · 1.09 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
43
44
45
name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
- next
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
ocaml-compiler:
- 4.14.1
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 }}
- name: Install system packages required by opam packages
run: opam depext --update geoip ocurl tls
- name: Install opam packages
run: |
opam pin add websocket-httpaf.~dev https://github.com/anmonteiro/websocket-httpaf.git
opam pin add websocket-httpaf-lwt.~dev https://github.com/anmonteiro/websocket-httpaf.git
opam install $(opam show -f depopts: . | sed -e 's/{.*}//g' -e 's/"//g')
opam install . --deps-only --with-doc --with-test
- name: Run build
run: opam exec -- make build