mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
Only install Eio in builds for ocaml >= 5
This commit is contained in:
parent
7746c871c2
commit
a0bee6bfcc
1 changed files with 9 additions and 1 deletions
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
|
|
@ -46,7 +46,15 @@ jobs:
|
||||||
opam pin pbrt 3.0.1 -y -n
|
opam pin pbrt 3.0.1 -y -n
|
||||||
opam install pbrt -y
|
opam install pbrt -y
|
||||||
|
|
||||||
- run: opam install . --deps-only --with-test --solver=mccs
|
# We cannot install packages that need eio on ocaml versions before 5
|
||||||
|
- if: ${{ ! startsWith("5" matrix.ocaml-compiler) }}
|
||||||
|
run: |
|
||||||
|
packages=$(ls *.opam | grep -v eio)
|
||||||
|
opam install $packages --deps-only --with-test --solver=mccs
|
||||||
|
|
||||||
|
# We should be able to install all packages on ocaml 5
|
||||||
|
- if: ${{ startsWith("5" matrix.ocaml-compiler) }}
|
||||||
|
run: opam install . --deps-only --with-test --solver=mccs
|
||||||
|
|
||||||
- run: opam exec -- dune build @install -p opentelemetry,opentelemetry-lwt,opentelemetry-client-ocurl,opentelemetry-cohttp-lwt,opentelemetry-client-cohttp-lwt
|
- run: opam exec -- dune build @install -p opentelemetry,opentelemetry-lwt,opentelemetry-client-ocurl,opentelemetry-cohttp-lwt,opentelemetry-client-cohttp-lwt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue