-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (54 loc) · 1.45 KB
/
build_and_test.yml
File metadata and controls
64 lines (54 loc) · 1.45 KB
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
name: Build and test
on:
push:
branches:
- "main"
- "staging"
- "dev"
pull_request:
branches:
- "*"
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.14.0
- 4.08.1
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
cache-prefix: v1-${{ matrix.os }}
opam-local-packages: pyml_bindgen.opam
- run: opam exec -- make deps
- name: Check release profile
run: |
opam exec -- make clean
opam exec -- make build_release
opam exec -- make test_release
opam exec -- make install_release
- name: Check dev profile
run: |
opam exec -- make deps_dev
opam exec -- make clean
opam exec -- make build_dev
opam exec -- make test_dev
opam exec -- make install_dev
if: matrix.ocaml-compiler == '4.14.0'
# Send the coverage.
- name: Send coverage
run: |
opam install bisect_ppx
opam exec -- make send_coverage
if: matrix.ocaml-compiler == '4.14.0'
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}