-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 841 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
37
38
name: Test kqueue-ml
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
ocaml-version:
- 4.13.x
os:
- macos-latest
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
dune-cache: ${{ matrix.os != 'macos-latest' }}
- name: Install dependencies
run: |
opam pin add kqueue.dev -n .
opam install -t . --deps-only
- name: Build
run: |
opam exec -- dune build
- name: Test
run: |
opam exec -- dune runtest