forked from johnwhitington/ppx_blob
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (57 loc) · 1.94 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
50
51
52
53
54
55
56
57
58
59
name: main
on:
- pull_request
- push
jobs:
build:
strategy:
fail-fast: false
matrix:
config:
# - {os: macos-latest, ocaml: 4.10.x} # < OCaml 4.10 is no longer unavailable
# - {os: macos-latest, ocaml: 4.14.x}
# - {os: macos-latest, ocaml: 5.2.x}
# - {os: ubuntu-latest, ocaml: 4.08.x}
# - {os: ubuntu-latest, ocaml: 4.09.x}
# - {os: ubuntu-latest, ocaml: 4.10.x}
# - {os: ubuntu-latest, ocaml: 4.11.x}
# - {os: ubuntu-latest, ocaml: 4.12.x}
# - {os: ubuntu-latest, ocaml: 4.13.x}
# - {os: ubuntu-latest, ocaml: 4.14.x}
# - {os: ubuntu-latest, ocaml: 5.0.x}
# - {os: ubuntu-latest, ocaml: 5.2.x}
- {os: windows-latest, ocaml: 4.12.x} # < OCaml 4.10 will not compile
# - {os: windows-latest, ocaml: 4.14.x}
# - {os: windows-latest, ocaml: 5.2.x}
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use OCaml ${{ matrix.config.ocaml }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.config.ocaml }}
- run: opam pin add --no-action ppx_blob.dev .
- run: opam install --deps-only --with-test .
- run: opam exec -- dune build @all @runtest
integration-test:
strategy:
fail-fast: false
matrix:
test-dir:
- dune-lang-1
- dune-lang-3
- ocamlbuild
- ocamlopt
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.11.x
- run: opam pin add ppx_blob.dev .
- run: opam pin add foo "integration-test/${{ matrix.test-dir }}"
- run: opam exec -- make clean run
working-directory: "integration-test/${{ matrix.test-dir }}"