44 lines (36 loc) · 1.05 KB
/
opam.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
name: Binaryen.ml - opam workflow
on:
- push
- pull_request
jobs:
build:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, macos-latest, windows-latest]
ocaml-version: [4.11.1]
steps:
- name: Checkout project
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Setup OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}
# I'm not exactly sure what the `opam pin` does
- name: Setup environment
run: |
opam pin add binaryen.dev . --no-action
opam depext binaryen --yes --with-doc --with-test
- name: Install local dependencies
run: |
opam install . --deps-only --with-doc --with-test
- name: Build project
run: |
opam exec -- dune build @all @install --no-buffer
- name: Run tests
run: |
opam exec -- dune runtest --force