@@ -18,12 +18,13 @@ let latest_ocaml5 = "5.4.0-beta2" (* Add this number to ocamls below when the ne
1818let  ocamls =  [
1919  (*  Fully supported versions *) 
2020  " 4.08.1"  ; " 4.09.1"  ; " 4.10.2"  ; " 4.11.2"  ; " 4.12.1"  ; " 4.13.1"  ;
21-   " 5.0.0"  ; " 5.1.1"  ; " 5.2.1"  ; " 5.3.0"  ;
21+   " 5.0.0"  ; " 5.1.1"  ; " 5.2.1"  ; " 5.3.0"  ;  " trunk " ; 
2222
2323  (*  The last elements of the list after 4.14 will be used as default versions *) 
2424  latest_ocaml4; latest_ocaml5;
2525]
26- let  start_latests_ocaml =  (4 , 14 )
26+ let  start_latests_ocaml =  latest_ocaml4
27+ let  oldest_ocamlv =  List. hd ocamls
2728
2829(*  Entry point for the workflow. Workflows are specified as continuations where
2930   each job is passed as a continuation to the [workflow], terminated with 
6970
7071let  end_workflow  ~oc :_   ~workflow :_   =  () 
7172
72- let  ocamls = 
73-   List. map (fun  v  -> Scanf. sscanf v " %u.%u.%u"   (fun  major  minor  _  -> ((major, minor), v))) ocamls
74- 
7573let  platform_ocaml_matrix  ?(dir =List. drop_while)  ~fail_fast   start_version  = 
7674  (fail_fast,
77-    [(" ocamlv"  , List. map snd ( dir (fun  ocaml  -> fst  ocaml <>   start_version) ocamls) )],
75+    [(" ocamlv"  , dir (fun  ocaml  -> not  ( String. equal  ocaml start_version))  ocamls)],
7876   [] )
7977
8078let  git_lf_checkouts  ?(title =" Configure Git"  )  ?cond   ?shell   ()  = 
@@ -562,7 +560,7 @@ let main oc : unit =
562560  workflow ~oc  ~env  " Builds, tests & co" 
563561  ++  analyse_job ~keys  ~platforms: [Linux ]
564562  @@  fun  analyse_job  -> cygwin_job ~analyse_job 
565-   @@  fun  cygwin_job  -> main_build_job ~analyse_job  ~cygwin_job  ~section: " Build"   Linux  ( 4 ,  08 ) 
563+   @@  fun  cygwin_job  -> main_build_job ~analyse_job  ~cygwin_job  ~section: " Build"   Linux  oldest_ocamlv 
566564  @@  fun  build_linux_job  -> main_build_job ~analyse_job  ~cygwin_job  Windows  start_latests_ocaml
567565  @@  fun  build_windows_job  -> main_build_job ~analyse_job  ~cygwin_job  MacOS  start_latests_ocaml
568566  @@  fun  build_macOS_job  -> main_test_job ~analyse_job  ~build_linux_job  ~build_windows_job  ~build_mac OS_job ~section: " Opam tests"   Linux 
0 commit comments