-
Notifications
You must be signed in to change notification settings - Fork 50
52 lines (52 loc) · 1.48 KB
/
test.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
name: Cstruct
on: [push, pull_request]
jobs:
latest:
name: Latest
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
ocaml-version: [ '5', '4', '4.10.0', '4.08.1' ]
operating-system: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- run: opam install . --deps-only --with-test
- name: Build
run: opam exec -- dune build
- run: opam exec -- dune runtest
ppx:
name: PPX
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
ocaml-version: [ '5', '4', '4.10.0', '4.08.1' ]
operating-system: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- run: opam pin add -n .
- name: Build
run: opam install -t ppx_cstruct
async:
name: Async
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
ocaml-version: [ '5', '4', '4.10.0', '4.08.1' ]
operating-system: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
- run: opam pin add -n .
- name: Dependencies
run: opam install -t cstruct-async