|
38 | 38 |
|
39 | 39 | - run: opam install ./tiny_httpd.opam ./tiny_httpd_camlzip.opam --deps-only --with-test |
40 | 40 |
|
41 | | - - run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip |
| 41 | + - name: Build (OCaml 4.x) |
| 42 | + run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip |
| 43 | + if: ${{ !startsWith(matrix.ocaml-compiler, '5.') }} |
| 44 | + |
| 45 | + - name: Build (OCaml 5.x, includes eio) |
| 46 | + run: | |
| 47 | + opam install ./tiny_httpd.opam ./tiny_httpd_eio.opam --deps-only --with-test |
| 48 | + opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_eio |
| 49 | + if: ${{ startsWith(matrix.ocaml-compiler, '5.') }} |
42 | 50 |
|
43 | 51 | - run: opam exec -- dune build @src/runtest @examples/runtest @tests/runtest -p tiny_httpd |
44 | 52 | if: ${{ matrix.os == 'ubuntu-latest' }} |
|
50 | 58 |
|
51 | 59 | - run: opam install logs magic-mime -y |
52 | 60 |
|
53 | | - - run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip |
| 61 | + - name: Final build (OCaml 4.x) |
| 62 | + run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip |
| 63 | + if: ${{ !startsWith(matrix.ocaml-compiler, '5.') }} |
| 64 | + |
| 65 | + - name: Final build (OCaml 5.x, includes eio) |
| 66 | + run: opam exec -- dune build @install -p tiny_httpd,tiny_httpd_camlzip,tiny_httpd_eio |
| 67 | + if: ${{ startsWith(matrix.ocaml-compiler, '5.') }} |
0 commit comments