-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (49 loc) · 1.2 KB
/
main.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
name: build
on:
push:
branches:
- main
pull_request:
jobs:
run:
name: build
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-13
setup-version:
- v2
- v3
ocaml-compiler:
- 4.06.x
- 4.14.x
- 5.1.x
exclude:
- os: ubuntu-latest
setup-version: v2
- os: macos-13
setup-version: v3
- os: macos-latest
setup-version: v2
- os: macos-latest
ocaml-compiler: 4.06.x
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v2
if: matrix.setup-version == 'v2'
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
- uses: ocaml/setup-ocaml@v3
if: matrix.setup-version == 'v3'
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: true
- run: opam pin -n .
- run: opam install -t . --deps-only
- run: opam exec -- dune build --ignore-promoted-rules
- run: opam exec -- dune runtest --ignore-promoted-rules