-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 843 Bytes
/
ocaml.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
name: OCaml CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up OCaml and Dune
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.12
- name: Debugging Information
run: |
echo "PATH: $PATH"
opam --version
- name: Check Environment
run: |
echo "PATH: $PATH"
echo "OCAML_TOPLEVEL_PATH: $OCAML_TOPLEVEL_PATH" # Check other relevant variables
- name: Build
run: |
eval $(opam env)
opam install --deps-only -y .
opam install dune -y
opam install ounit2 -y
dune build
- name: Run Tests
run: eval $(opam env) && dune exec ./test.exe
- name: Clean Up
run: eval $(opam env) && dune clean