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 14
14
fail-fast : true
15
15
matrix :
16
16
os :
17
- - macos-latest
18
17
- ubuntu-latest
19
- # - windows-latest
20
18
ocaml-compiler :
21
19
- ' 4.08'
22
20
- ' 4.14'
@@ -32,23 +30,37 @@ jobs:
32
30
ocaml-compiler : ${{ matrix.ocaml-compiler }}
33
31
dune-cache : true
34
32
allow-prerelease-opam : true
35
-
36
33
- 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
38
36
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
39
59
- run : |
40
60
opam install -t containers --deps-only ;
41
61
opam install containers-data --deps-only # no test deps
42
- if: matrix.os != 'ubuntu-latest'
43
-
44
62
- run : opam exec -- dune build '@install'
45
-
46
- - run : opam exec -- dune runtest
47
- if : ${{ matrix.os == 'ubuntu-latest' }}
48
-
49
63
- run : opam exec -- dune runtest -j 1 -p containers # test only core on non-ubuntu platform
50
- if : ${{ matrix.os != 'ubuntu-latest' }}
51
-
52
64
53
65
format :
54
66
name : format
Original file line number Diff line number Diff line change @@ -140,13 +140,14 @@ let () =
140
140
l;
141
141
true
142
142
143
- [@@@ endif];;
143
+ [@@@ endif]
144
144
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))
150
151
;;
151
152
152
153
eq ~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