Skip to content

Commit b2944d9

Browse files
authored
Merge pull request #24 from ahrefs/louis/ocaml5
ci: check ocaml 5
2 parents 80f3544 + 8f5a524 commit b2944d9

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/makefile.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,37 @@ on:
1010
jobs:
1111
build:
1212

13+
strategy:
14+
matrix:
15+
ocaml-version:
16+
- 4.14
17+
- 5.1
18+
1319
runs-on: ubuntu-latest
1420

1521
steps:
1622
- name: Checkout code
17-
uses: actions/checkout@v2
23+
uses: actions/checkout@v4
1824

1925
- name: Update apt
2026
run: sudo apt-get update
2127

22-
- name: Set up OCaml
28+
- name: Set up OCaml ${{ matrix.ocaml-version }}
2329
uses: ocaml/setup-ocaml@v2
2430
with:
25-
ocaml-compiler: 4.13.1
31+
ocaml-compiler: ${{ matrix.ocaml-version }}
2632
dune-cache: true
33+
opam-depext-flags: "--with-test"
34+
allow-prerelease-opam: true
2735

2836
- name: Install OCaml deps
2937
run: opam install . --deps-only --with-test
38+
39+
- name: Pin libevent
40+
run: opam pin add libevent --dev
3041

3142
- name: Build
32-
run: opam exec -- dune build
43+
run: opam exec -- dune build --profile=release
3344

3445
- name: Test
35-
run: opam exec -- dune runtest
46+
run: opam exec -- dune runtest --profile=release

0 commit comments

Comments
 (0)