Skip to content

Improve successes for the ocaml-ci (for OCaml ≤ 4.12 + lower bounds) #128

Improve successes for the ocaml-ci (for OCaml ≤ 4.12 + lower bounds)

Improve successes for the ocaml-ci (for OCaml ≤ 4.12 + lower bounds) #128

Workflow file for this run

name: devkit
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
ocaml-version:
- 4.14
- 5.2
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Update apt
run: sudo apt-get update
- name: Set up OCaml ${{ matrix.ocaml-version }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-version }}
dune-cache: true
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 --profile=release
- name: Test
run: opam exec -- dune runtest --profile=release