Skip to content

Commit 386cccf

Browse files
committed
test trunk
1 parent f7473bc commit 386cccf

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/scripts/main/ocaml-cache.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ esac
4242
FLEXDLL_VERSION=0.43
4343
MINGW_W64_VERSION=12.0.0
4444

45-
curl -sLO "https://github.com/ocaml/ocaml/archive/refs/tags/${OCAML_VERSION}.tar.gz"
45+
curl -sLO "https://github.com/ocaml/ocaml/archive/refs/tags/${OCAML_VERSION}.tar.gz" || \
46+
curl -sLO "https://github.com/ocaml/ocaml/archive/refs/heads/${OCAML_VERSION}.tar.gz"
4647
if [[ $PLATFORM = 'Windows' ]] ; then
4748
curl -sLO "https://github.com/ocaml/flexdll/archive/refs/tags/$FLEXDLL_VERSION.tar.gz"
4849
curl -sLO "https://github.com/mingw-w64/mingw-w64/archive/refs/tags/v${MINGW_W64_VERSION}.tar.gz"

.github/workflows/ci.ml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ let latest_ocaml5 = "5.4.0-beta2" (* Add this number to ocamls below when the ne
1818
let 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
@@ -69,12 +70,9 @@ jobs:
6970

7071
let 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-
7573
let 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

8078
let 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_macOS_job ~section:"Opam tests" Linux

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
needs: Analyse
107107
strategy:
108108
matrix:
109-
ocamlv: [ 4.08.1, 4.09.1, 4.10.2, 4.11.2, 4.12.1, 4.13.1, 5.0.0, 5.1.1, 5.2.1, 5.3.0, 4.14.2, 5.4.0-beta2 ]
109+
ocamlv: [ 4.08.1, 4.09.1, 4.10.2, 4.11.2, 4.12.1, 4.13.1, 5.0.0, 5.1.1, 5.2.1, 5.3.0, trunk, 4.14.2, 5.4.0-beta2 ]
110110
fail-fast: true
111111
steps:
112112
- name: Install bubblewrap

0 commit comments

Comments
 (0)