File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ build :
10
+ strategy :
11
+ fail-fast : false
12
+
13
+ matrix :
14
+ os :
15
+ - ubuntu-latest
16
+ ocaml-compiler :
17
+ - 5.3.0 # matches opam lock file
18
+ # don't add any other because they won't be used
19
+
20
+ runs-on : ${{ matrix.os }}
21
+
22
+ steps :
23
+ - name : Checkout code
24
+ uses : actions/checkout@v4
25
+
26
+ - name : Set up OCaml ${{ matrix.ocaml-compiler }}
27
+ env :
28
+ # otherwise setup-ocaml pins non-locked dependencies
29
+ # https://github.com/ocaml/setup-ocaml/issues/166
30
+ OPAMLOCKED : locked
31
+ uses : ocaml/setup-ocaml@v3
32
+ with :
33
+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
34
+
35
+ - name : Install dependencies
36
+ run : opam install . --deps-only --locked --with-test
37
+
38
+ - name : Build
39
+ run : opam exec -- dune build
40
+
41
+ - name : Run hello
42
+ run : opam exec -- dune exec src/hello/hello.exe
You can’t perform that action at this time.
0 commit comments