Skip to content

Commit a47f0d8

Browse files
authored
Create main.yml
1 parent 76fc9f1 commit a47f0d8

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: OCaml CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
name: OCaml ${{ matrix.ocaml-compiler }} on ${{ matrix.os }} ${{ matrix.arch }}
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
15+
arch: [x64, arm64]
16+
ocaml-compiler:
17+
- 4.08
18+
- 4.09
19+
- 4.10
20+
- 4.11
21+
- 4.12
22+
- 4.13
23+
- 4.14
24+
- 5.0
25+
- 5.1
26+
- 5.2
27+
- 5.3
28+
- 5.4
29+
30+
steps:
31+
- uses: actions/checkout@v4
32+
33+
- uses: avsm/setup-ocaml@v2
34+
with:
35+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
36+
architecture: ${{ matrix.arch }}
37+
38+
- run: opam install . --deps-only --with-test -y
39+
- run: dune build
40+
- run: dune runtest

0 commit comments

Comments
 (0)