Skip to content

Commit 7454811

Browse files
committed
Lisa GitHub Actions
1 parent c9cde3d commit 7454811

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)