From 447826e8476719ae54b6ffc211d01a754056acdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20Roch=C3=A9=20=28Ahrefs=29?= Date: Mon, 8 Apr 2024 02:44:29 +0000 Subject: [PATCH 1/3] ci: check ocaml 5 --- .github/workflows/makefile.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 4f56a93..8285878 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -10,20 +10,28 @@ 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 From 8220b527c4b464215c22800c40813ca13df2092e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20Roch=C3=A9=20=28Ahrefs=29?= Date: Mon, 8 Apr 2024 02:57:53 +0000 Subject: [PATCH 2/3] ci: build in release mode --- .github/workflows/makefile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 8285878..bdc517e 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -37,7 +37,7 @@ jobs: run: opam install . --deps-only --with-test - 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 From 8f5a524acfb03960166b7e7c487bd777643eddba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20Roch=C3=A9=20=28Ahrefs=29?= Date: Mon, 8 Apr 2024 03:05:44 +0000 Subject: [PATCH 3/3] ci: pin libevent Needed to support ocaml 5 until a new version of libevent is released --- .github/workflows/makefile.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index bdc517e..1e90e3b 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -35,6 +35,9 @@ jobs: - 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 --profile=release