Skip to content

Commit

Permalink
Merge pull request #24 from ahrefs/louis/ocaml5
Browse files Browse the repository at this point in the history
ci: check ocaml 5
  • Loading branch information
Khady authored Apr 8, 2024
2 parents 80f3544 + 8f5a524 commit b2944d9
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,37 @@ on:
jobs:
build:

strategy:
matrix:
ocaml-version:
- 4.14
- 5.1

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Update apt
run: sudo apt-get update

- name: Set up OCaml
- name: Set up OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.13.1
ocaml-compiler: ${{ matrix.ocaml-version }}
dune-cache: true
opam-depext-flags: "--with-test"
allow-prerelease-opam: true

- name: Install OCaml deps
run: opam install . --deps-only --with-test

- name: Pin libevent
run: opam pin add libevent --dev

- name: Build
run: opam exec -- dune build
run: opam exec -- dune build --profile=release

- name: Test
run: opam exec -- dune runtest
run: opam exec -- dune runtest --profile=release

0 comments on commit b2944d9

Please sign in to comment.