Skip to content

Commit df1e8f6

Browse files
authored
Add Alpine 3.18 (#167)
1 parent 5089e74 commit df1e8f6

File tree

3 files changed

+22
-9
lines changed

3 files changed

+22
-9
lines changed

CHANGES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
unreleased
22
----------
33

4+
- Add Alpine 3.18. (@MisterDA #167)
45
- Support opam new `--with-vendored-deps` configure option. (@MisterDA #165)
5-
- Rework Windows images and update their dependencies:
6+
- Rework Windows images and update their dependencies. (@MisterDA #162)
67
+ Fix the origin of Install.cmd (avsm -> ocurrent);
78
+ Rename Windows.Cygwin.install_from_release to install_cygwin;
89
+ Rework Cygwin package list needed for opam and OCaml for Windows;
@@ -13,8 +14,7 @@ unreleased
1314
+ Track msvs-tools master;
1415
+ Split MSVC build into multiple build steps;
1516
+ Internal refactors.
16-
(@MisterDA #162)
17-
- Added Ubuntu 23.04 and Fedora 38. (@mtelvers #164)
17+
- Add Ubuntu 23.04 and Fedora 38. (@mtelvers #164)
1818
- Add newlines in some cases for better formatting.
1919
(@MisterDA #161, review by @benmandrew)
2020
- Various LCU Updates. (@mtelvers #160)

src-opam/distro.ml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ type distro =
251251
| `V3_14
252252
| `V3_15
253253
| `V3_16
254-
| `V3_17 ]
254+
| `V3_17
255+
| `V3_18 ]
255256
| `Archlinux of [ `Latest ]
256257
| `CentOS of [ `V6 | `V7 | `V8 ]
257258
| `Debian of [ `V11 | `V10 | `V9 | `V8 | `V7 | `Testing | `Unstable ]
@@ -318,6 +319,7 @@ type t =
318319
| `V3_15
319320
| `V3_16
320321
| `V3_17
322+
| `V3_18
321323
| `Latest ]
322324
| `Archlinux of [ `Latest ]
323325
| `CentOS of [ `V6 | `V7 | `V8 | `Latest ]
@@ -429,6 +431,7 @@ let distros : t list =
429431
`Alpine `V3_15;
430432
`Alpine `V3_16;
431433
`Alpine `V3_17;
434+
`Alpine `V3_18;
432435
`Alpine `Latest;
433436
`Archlinux `Latest;
434437
`CentOS `V6;
@@ -571,7 +574,7 @@ let win10_latest_image = `V21H2
571574

572575
let resolve_alias (d : t) : distro =
573576
match d with
574-
| `Alpine `Latest -> `Alpine `V3_17
577+
| `Alpine `Latest -> `Alpine `V3_18
575578
| `CentOS `Latest -> `CentOS `V7
576579
| `Debian `Stable -> `Debian `V11
577580
| `Fedora `Latest -> `Fedora `V38
@@ -583,7 +586,8 @@ let resolve_alias (d : t) : distro =
583586
| `Windows (cc, (#win10_ltsc as v)) -> `Windows (cc, resolve_ltsc v)
584587
| ( `Alpine
585588
( `V3_3 | `V3_4 | `V3_5 | `V3_6 | `V3_7 | `V3_8 | `V3_9 | `V3_10
586-
| `V3_11 | `V3_12 | `V3_13 | `V3_14 | `V3_15 | `V3_16 | `V3_17 )
589+
| `V3_11 | `V3_12 | `V3_13 | `V3_14 | `V3_15 | `V3_16 | `V3_17 | `V3_18
590+
)
587591
| `Archlinux `Latest
588592
| `CentOS (`V6 | `V7 | `V8)
589593
| `Debian (`V7 | `V8 | `V9 | `V10 | `V11 | `Testing | `Unstable)
@@ -616,7 +620,8 @@ let distro_status (d : t) : status =
616620
| `V3_11 | `V3_12 | `V3_13 | `V3_14 | `V3_15 ) ->
617621
`Deprecated
618622
| `Alpine `V3_16 -> `Active `Tier2
619-
| `Alpine `V3_17 -> `Active `Tier1
623+
| `Alpine `V3_17 -> `Active `Tier2
624+
| `Alpine `V3_18 -> `Active `Tier1
620625
| `Archlinux `Latest -> `Active `Tier3
621626
| `CentOS `V7 -> `Active `Tier3
622627
| `CentOS (`V6 | `V8) -> `Deprecated
@@ -683,7 +688,7 @@ let distro_arches ov (d : t) =
683688
[ `I386; `X86_64; `Aarch64; `Aarch32 ]
684689
| ( `Alpine
685690
( `V3_6 | `V3_7 | `V3_8 | `V3_9 | `V3_10 | `V3_11 | `V3_12 | `V3_13
686-
| `V3_14 | `V3_15 | `V3_16 | `V3_17 ),
691+
| `V3_14 | `V3_15 | `V3_16 | `V3_17 | `V3_18 ),
687692
ov )
688693
when OV.(compare Releases.v4_05_0 ov) = -1 ->
689694
[ `X86_64; `Aarch64 ]
@@ -780,6 +785,7 @@ let builtin_ocaml_of_distro (d : t) : string option =
780785
| `Alpine `V3_15 -> Some "4.13.1"
781786
| `Alpine `V3_16 -> Some "4.14.0"
782787
| `Alpine `V3_17 -> Some "4.14.0"
788+
| `Alpine `V3_18 -> Some "4.14.1"
783789
| `Archlinux `Latest -> Some "4.11.1"
784790
| `Fedora `V21 -> Some "4.01.0"
785791
| `Fedora `V22 -> Some "4.02.0"
@@ -960,6 +966,7 @@ let tag_of_distro (d : t) =
960966
| `Alpine `V3_15 -> "alpine-3.15"
961967
| `Alpine `V3_16 -> "alpine-3.16"
962968
| `Alpine `V3_17 -> "alpine-3.17"
969+
| `Alpine `V3_18 -> "alpine-3.18"
963970
| `Alpine `Latest -> "alpine"
964971
| `Archlinux `Latest -> "archlinux"
965972
| `OpenSUSE `V42_1 -> "opensuse-42.1"
@@ -1051,6 +1058,7 @@ let distro_of_tag x : t option =
10511058
| "alpine-3.15" -> Some (`Alpine `V3_15)
10521059
| "alpine-3.16" -> Some (`Alpine `V3_16)
10531060
| "alpine-3.17" -> Some (`Alpine `V3_17)
1061+
| "alpine-3.18" -> Some (`Alpine `V3_18)
10541062
| "alpine" -> Some (`Alpine `Latest)
10551063
| "archlinux" -> Some (`Archlinux `Latest)
10561064
| "opensuse-42.1" -> Some (`OpenSUSE `V42_1)
@@ -1139,6 +1147,7 @@ let human_readable_string_of_distro (d : t) =
11391147
| `Alpine `V3_15 -> "Alpine 3.15"
11401148
| `Alpine `V3_16 -> "Alpine 3.16"
11411149
| `Alpine `V3_17 -> "Alpine 3.17"
1150+
| `Alpine `V3_18 -> "Alpine 3.18"
11421151
| `Archlinux `Latest -> "Archlinux"
11431152
| `OpenSUSE `V42_1 -> "OpenSUSE 42.1"
11441153
| `OpenSUSE `V42_2 -> "OpenSUSE 42.2"
@@ -1270,6 +1279,7 @@ let bubblewrap_version (t : t) =
12701279
| `Alpine `V3_15 -> Some (0, 5, 0)
12711280
| `Alpine `V3_16 -> Some (0, 6, 2)
12721281
| `Alpine `V3_17 -> Some (0, 7, 0)
1282+
| `Alpine `V3_18 -> Some (0, 8, 0)
12731283
| `Archlinux `Latest -> Some (0, 8, 0)
12741284
| `OpenSUSE `V42_1 -> None (* Not actually checked *)
12751285
| `OpenSUSE `V42_2 -> None (* Not actually checked *)
@@ -1312,6 +1322,7 @@ let base_distro_tag ?win10_revision ?(arch = `X86_64) d =
13121322
| `V3_15 -> "3.15"
13131323
| `V3_16 -> "3.16"
13141324
| `V3_17 -> "3.17"
1325+
| `V3_18 -> "3.18"
13151326
in
13161327
match arch with `I386 -> ("i386/alpine", tag) | _ -> ("alpine", tag))
13171328
| `Archlinux `Latest -> ("archlinux", "latest")

src-opam/distro.mli

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ type distro =
101101
| `V3_14
102102
| `V3_15
103103
| `V3_16
104-
| `V3_17 ]
104+
| `V3_17
105+
| `V3_18 ]
105106
| `Archlinux of [ `Latest ]
106107
| `CentOS of [ `V6 | `V7 | `V8 ]
107108
| `Debian of [ `V11 | `V10 | `V9 | `V8 | `V7 | `Testing | `Unstable ]
@@ -169,6 +170,7 @@ type t =
169170
| `V3_15
170171
| `V3_16
171172
| `V3_17
173+
| `V3_18
172174
| `Latest ]
173175
| `Archlinux of [ `Latest ]
174176
| `CentOS of [ `V6 | `V7 | `V8 | `Latest ]

0 commit comments

Comments
 (0)