-
-
Notifications
You must be signed in to change notification settings - Fork 77
46 lines (36 loc) · 1003 Bytes
/
build.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
name: Build
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest]
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/setup-node@v4
with:
node-version: "20"
- uses: lukka/get-cmake@latest
- name: Setup anew (or from cache) vcpkg (and does not build any package)
uses: lukka/run-vcpkg@v11
with:
runVcpkgInstall: true
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.10.2
dune-cache: true
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- name: Test
run: esy test
- name: Test node bindings
run: esy test-js
- name: Test ts declaration
run: esy test-ts
- uses: actions/upload-artifact@v2
if: failure()
with:
name: orange_diff_generated
path: test/test-images