Skip to content

Set Lwt_engine.libev #4

Set Lwt_engine.libev

Set Lwt_engine.libev #4

Workflow file for this run

name: ci
on:
pull_request:
push:
branches:
- main
jobs:
test-on-macos:
strategy:
fail-fast: false
matrix:
ocaml-compiler:
- ocaml.5.2.0
runs-on: macos-latest
steps:
- name: Install libev
run: brew install libev
- name: Check out code
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- name: Make sure Lwt is compiled with libev support
run: opam install conf-libev
- name: Install dependencies
run: opam install . --deps-only --with-test
- name: Build
run: opam exec -- dune build
- name: Test
run: |
opam exec -- dune exec -- bin/server/server.exe &
sleep 1;
for (( i=0; i<1024; ++i )) ; do
echo -n "$i "
curl -s http://localhost:8080/ ;
done