-
-
Notifications
You must be signed in to change notification settings - Fork 26
68 lines (62 loc) · 1.78 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: ci
on: [push, pull_request]
jobs:
opam:
strategy:
matrix:
os:
- ubuntu-latest
ocaml:
- 5.1.x
- 4.14.x
- 4.03.x
include:
- os: macos-latest
ocaml: 4.14.x
# Windows disabled due to an upstream problem with libuv's autotools
# build not generating a .dll file since commit 748d894e. See
# https://github.com/libuv/libuv/issues/4259
# - os: windows-latest
# ocaml: 4.14.x
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ocaml/setup-ocaml@v2
if: runner.os != 'Windows'
with:
ocaml-compiler: ${{ matrix.ocaml }}
- uses: ocaml/setup-ocaml@v2
if: runner.os == 'Windows'
with:
ocaml-compiler: ${{ matrix.ocaml }}
opam-repositories: |
opam-repository-mingw: https://github.com/ocaml-opam/opam-repository-mingw.git#sunset
default: https://github.com/ocaml/opam-repository.git
- run: opam depext -y conf-pkg-config
- run: opam install -y --deps-only .
- run: opam exec -- dune build -p luv
# esy builds are broken due to an upstream bug that is not worth working
# around in luv, but should be fixed in esy:
#
# https://github.com/esy/esy/issues/1440
#
# esy:
# strategy:
# matrix:
# os:
# - ubuntu-latest
# - macos-latest
# - windows-latest
# fail-fast: false
# runs-on: ${{ matrix.os }}
#
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: recursive
# - run: npm install esy
# - run: npx esy install
# - run: npx esy build