File tree Expand file tree Collapse file tree 2 files changed +31
-18
lines changed Expand file tree Collapse file tree 2 files changed +31
-18
lines changed Original file line number Diff line number Diff line change 1414 fail-fast : true
1515 matrix :
1616 os :
17- - macos-latest
1817 - ubuntu-latest
19- # - windows-latest
2018 ocaml-compiler :
2119 - ' 4.08'
2220 - ' 4.14'
@@ -32,23 +30,37 @@ jobs:
3230 ocaml-compiler : ${{ matrix.ocaml-compiler }}
3331 dune-cache : true
3432 allow-prerelease-opam : true
35-
3633 - run : opam install -t containers containers-data --deps-only
37- if : matrix.os == 'ubuntu-latest'
34+ - run : opam exec -- dune build '@install'
35+ - run : opam exec -- dune runtest
3836
37+ compat :
38+ name : build
39+ timeout-minutes : 15
40+ strategy :
41+ fail-fast : true
42+ matrix :
43+ os :
44+ - macos-latest
45+ - ubuntu-latest
46+ # - windows-latest
47+ ocaml-compiler :
48+ - ' 5.1'
49+
50+ runs-on : ${{ matrix.os }}
51+ steps :
52+ - uses : actions/checkout@main
53+ - name : Use OCaml ${{ matrix.ocaml-compiler }}
54+ uses : ocaml/setup-ocaml@v2
55+ with :
56+ ocaml-compiler : ${{ matrix.ocaml-compiler }}
57+ dune-cache : true
58+ allow-prerelease-opam : true
3959 - run : |
4060 opam install -t containers --deps-only ;
4161 opam install containers-data --deps-only # no test deps
42- if: matrix.os != 'ubuntu-latest'
43-
4462 - run : opam exec -- dune build '@install'
45-
46- - run : opam exec -- dune runtest
47- if : ${{ matrix.os == 'ubuntu-latest' }}
48-
4963 - run : opam exec -- dune runtest -j 1 -p containers # test only core on non-ubuntu platform
50- if : ${{ matrix.os != 'ubuntu-latest' }}
51-
5264
5365 format :
5466 name : format
Original file line number Diff line number Diff line change @@ -140,13 +140,14 @@ let () =
140140 l;
141141 true
142142
143- [@@@ endif];;
143+ [@@@ endif]
144144
145- q
146- Q. (list int )
147- (fun l ->
148- fold_flat_map (fun acc x -> x :: acc, [ x; x + 10 ]) [] l
149- = (List. rev l, flat_map (fun x -> [ x; x + 10 ]) l))
145+ let () =
146+ q
147+ Q. (list int )
148+ (fun l ->
149+ fold_flat_map (fun acc x -> x :: acc, [ x; x + 10 ]) [] l
150+ = (List. rev l, flat_map (fun x -> [ x; x + 10 ]) l))
150151;;
151152
152153eq ~printer: Q.Print. (list int ) ~name: " unfold1" [ 0 ; 2 ; 4 ; 6 ; 8 ; 10 ]
You can’t perform that action at this time.
0 commit comments