@@ -47,49 +47,20 @@ jobs:
47
47
- run : opam exec -- make test
48
48
if : runner.os != 'Windows'
49
49
50
- # # The tests require ppx_expect. The latest versions of it introduced changes
51
- # # in the formatting of the output, and also require OCaml >= 4.10, which
52
- # # makes testing on < 4.10 awkward. So, we skip tests on < 4.10.
53
- # - shell: bash
54
- # run: |
55
- # set -e
56
- # set -x
57
- #
58
- # WITH_TEST=--with-test
59
- # case ${{matrix.ocaml}} in
60
- # 4.09.x) WITH_TEST=;;
61
- # 4.08.x) WITH_TEST=;;
62
- # esac
63
- #
64
- # # Tests on Windows are disabled because of a difference in ppx_expect
65
- # # output. See https://github.com/aantron/dream/pull/282.
66
- # case ${{runner.os}} in
67
- # Windows) WITH_TEST=;;
68
- # esac
69
- #
70
- # OPAM=$(which opam || true)
71
- # if [ -z "$OPAM" ]
72
- # then
73
- # OPAM=D:\\cygwin\\wrapperbin\\opam.cmd
74
- # fi
75
- #
76
- # $OPAM install --yes --deps-only $WITH_TEST ./dream-pure.opam ./dream-httpaf.opam ./dream.opam
77
- #
78
- # if [ ! -z "$WITH_TEST" ]
79
- # then
80
- # $OPAM exec -- dune runtest
81
- #
82
- # EXAMPLES=$(find example -maxdepth 1 -type d -not -name "w-mirage*" -not -name "r-tyxml" | grep -v "^example/0" | grep -v "^example$" | sort)
83
- # shopt -s nullglob
84
- #
85
- # for EXAMPLE in $EXAMPLES
86
- # do
87
- # FILE=$(ls $EXAMPLE/*.ml $EXAMPLE/*.re $EXAMPLE/server/*.ml $EXAMPLE/server/*.re)
88
- # EXE=$(echo $FILE | sed 's/\..*$/.exe/g')
89
- # echo dune build $EXE
90
- # $OPAM exec -- dune build $EXE
91
- # done
92
- # fi
50
+ - name : Build examples
51
+ if : runner.os != 'Windows'
52
+ run : |
53
+ set -e
54
+ set -x
55
+ EXAMPLES=$(find example -maxdepth 1 -type d -not -name "w-mirage*" -not -name "r-tyxml" | grep -v "^example/0" | grep -v "^example$" | sort)
56
+ shopt -s nullglob
57
+ for EXAMPLE in $EXAMPLES
58
+ do
59
+ FILE=$(ls $EXAMPLE/*.ml $EXAMPLE/*.re $EXAMPLE/server/*.ml $EXAMPLE/server/*.re)
60
+ EXE=$(echo $FILE | sed 's/\..*$/.exe/g')
61
+ echo dune build $EXE
62
+ opam exec -- dune build $EXE
63
+ done
93
64
94
65
quickstart :
95
66
strategy :
0 commit comments