-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (47 loc) · 1.21 KB
/
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
47
48
49
name: build
run-name: Build Bam
on: [push]
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: write
jobs:
build_matrix:
runs-on: ubuntu-latest
strategy:
matrix:
ocaml-compiler: [
# OCaml LTS version
ocaml.4.14.2,
# ocaml-system for Fedora 39
ocaml.5.0.0,
# ocaml-system for Archlinux
ocaml.5.1.0
]
steps:
- uses: actions/checkout@v4
- name: setting up opam...
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Install dependencies
run: |
opam update
opam upgrade
opam install . --deps-only -t
- name: Build Bam
run: |
eval $(opam env)
dune build .
- name: Test
run: |
eval $(opam env)
dune exec test/main.exe -- --keep-going
- name: Build documentation
run: |
eval $(opam env)
opam install odoc
dune build @doc
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _build/default/_doc/_html