mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2026-03-08 06:47:59 -04:00
ci: only build/test eio on OCaml 5.x
This commit is contained in:
parent
28f7ddd74f
commit
6c3e705df5
1 changed files with 16 additions and 2 deletions
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
|
|
@ -38,7 +38,15 @@ jobs:
|
||||||
|
|
||||||
- run: opam install ./tiny_httpd.opam ./tiny_httpd_camlzip.opam --deps-only --with-test
|
- run: opam install ./tiny_httpd.opam ./tiny_httpd_camlzip.opam --deps-only --with-test
|
||||||
|
|
||||||
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_eio
|
- name: Build (OCaml 4.x)
|
||||||
|
run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip
|
||||||
|
if: ${{ !startsWith(matrix.ocaml-compiler, '5.') }}
|
||||||
|
|
||||||
|
- name: Build (OCaml 5.x, includes eio)
|
||||||
|
run: |
|
||||||
|
opam install ./tiny_httpd_eio.opam --deps-only --with-test
|
||||||
|
opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_eio
|
||||||
|
if: ${{ startsWith(matrix.ocaml-compiler, '5.') }}
|
||||||
|
|
||||||
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd
|
- run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
|
@ -50,4 +58,10 @@ jobs:
|
||||||
|
|
||||||
- run: opam install logs magic-mime -y
|
- run: opam install logs magic-mime -y
|
||||||
|
|
||||||
- run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_eio
|
- name: Final build (OCaml 4.x)
|
||||||
|
run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip
|
||||||
|
if: ${{ !startsWith(matrix.ocaml-compiler, '5.') }}
|
||||||
|
|
||||||
|
- name: Final build (OCaml 5.x, includes eio)
|
||||||
|
run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_eio
|
||||||
|
if: ${{ startsWith(matrix.ocaml-compiler, '5.') }}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue