File tree Expand file tree Collapse file tree 1 file changed +35
-16
lines changed
Expand file tree Collapse file tree 1 file changed +35
-16
lines changed Original file line number Diff line number Diff line change 11name : build
2- on : [push, pull_request]
2+
3+ on :
4+ pull_request :
5+ push :
6+ schedule :
7+ # Prime the caches every Monday
8+ - cron : 0 1 * * MON
9+
310jobs :
4- run :
5- name : Build
6- runs-on : ${{ matrix.operating-system }}
11+ build :
712 strategy :
13+ fail-fast : false
814 matrix :
9- operating-system : [macos-latest, ubuntu-latest, windows-latest]
10- ocaml-compiler : [ '4.04.0', '4.11.0' ]
15+ os :
16+ - macos-latest
17+ - ubuntu-latest
18+ - windows-latest
19+ ocaml-compiler :
20+ - 4.04.x
21+ - 4.13.x
22+
23+ runs-on : ${{ matrix.os }}
24+
1125 steps :
12- - uses : actions/checkout@master
13- - uses : avsm/setup-ocaml@v2
14- with :
15- ocaml-compiler : ${{ matrix.ocaml-compiler }}
16- - run : opam pin -n .
17- - run : opam depext -yt tiny_httpd tiny_httpd_camlzip
18- - run : opam install -t . --deps-only
19- - run : opam exec -- dune build @install
20- - run : opam exec -- dune runtest
21- if : ${{ matrix.operating-system == 'unbuntu-latest' }}
26+ - name : Checkout code
27+ uses : actions/checkout@v2
28+
29+ - name : Use OCaml ${{ matrix.ocaml-compiler }}
30+ uses : ocaml/setup-ocaml@v2
31+ with :
32+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
33+ opam-depext-flags : --with-test
34+
35+ - run : opam install . --deps-only --with-test
36+
37+ - run : opam exec -- dune build @install
38+
39+ - run : opam exec -- dune runtest
40+ if : ${{ matrix.os == 'ubuntu-latest' }}
You can’t perform that action at this time.
0 commit comments