Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM ocaml/opam:debian-12-ocaml-4.14 AS build
RUN sudo ln -sf /usr/bin/opam-2.3 /usr/bin/opam && opam init --reinit -ni
RUN sudo ln -sf /usr/bin/opam-2.5 /usr/bin/opam && opam init --reinit -ni
RUN sudo rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' | sudo tee /etc/apt/apt.conf.d/keep-cache
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
Expand All @@ -14,7 +14,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
m4 \
pkg-config \
libcapnp-dev
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard 164308699cf74247b8ad3b002e88bd80a586c79e && opam update
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard a6b2f19780b2edfc4e5dba2566235c877dbf5acd && opam update
COPY --chown=opam --link \
ocurrent/current_docker.opam \
ocurrent/current_github.opam \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.gitlab
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
libsqlite3-dev \
m4 \
pkg-config
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard 164308699cf74247b8ad3b002e88bd80a586c79e && opam update
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard a6b2f19780b2edfc4e5dba2566235c877dbf5acd && opam update
COPY --chown=opam --link \
ocurrent/current_docker.opam \
ocurrent/current_github.opam \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
libssl-dev \
m4 \
pkg-config
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard 164308699cf74247b8ad3b002e88bd80a586c79e && opam update
RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard a6b2f19780b2edfc4e5dba2566235c877dbf5acd && opam update
COPY --chown=opam --link \
ocurrent/current_rpc.opam \
/src/ocurrent/
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(lang dune 3.16)
(lang dune 3.20)
(name ocaml-ci)

(generate_opam_files true)
Expand Down
5 changes: 5 additions & 0 deletions lib/opam_build.ml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,11 @@ let install_project_deps ~opam_version ~opam_files ~selection =
"opam update --depexts && opam install --cli=2.4 --depext-only -y %s \
$DEPS"
compatible_root_pkgs
| `V2_5 ->
run ~network ~cache
"opam update --depexts && opam install --cli=2.5 --depext-only -y %s \
$DEPS"
compatible_root_pkgs
in
(if Variant.arch variant |> Ocaml_version.arch_is_32bit then
[ shell [ "/usr/bin/linux32"; "/bin/sh"; "-c" ] ]
Expand Down
5 changes: 4 additions & 1 deletion lib/opam_version.ml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
type t = [ `V2_0 | `V2_1 | `V2_2 | `V2_3 | `V2_4 ] [@@deriving ord, yojson, eq]
type t = [ `V2_0 | `V2_1 | `V2_2 | `V2_3 | `V2_4 | `V2_5 ] [@@deriving ord, yojson, eq]

let to_string = function
| `V2_0 -> "2.0"
| `V2_1 -> "2.1"
| `V2_2 -> "2.2"
| `V2_3 -> "2.3"
| `V2_4 -> "2.4"
| `V2_5 -> "2.5"

let to_string_with_patch = function
| `V2_0 -> "2.0.10"
| `V2_1 -> "2.1.6"
| `V2_2 -> "2.2.1"
| `V2_3 -> "2.3.0"
| `V2_4 -> "2.4.1"
| `V2_5 -> "2.5.0"

let pp = Fmt.of_to_string to_string
let default = `V2_0
Expand All @@ -23,4 +25,5 @@ let of_string = function
| "2.2" -> Ok `V2_2
| "2.3" -> Ok `V2_3
| "2.4" -> Ok `V2_4
| "2.5" -> Ok `V2_5
| s -> Error (`Msg (s ^ ": invalid opam version"))
2 changes: 1 addition & 1 deletion lib/opam_version.mli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(** Opam versions supported. *)

type t = [ `V2_0 | `V2_1 | `V2_2 | `V2_3 | `V2_4 ] [@@deriving ord, yojson, eq]
type t = [ `V2_0 | `V2_1 | `V2_2 | `V2_3 | `V2_4 | `V2_5 ] [@@deriving ord, yojson, eq]

val pp : t Fmt.t
val to_string : t -> string
Expand Down
3 changes: 2 additions & 1 deletion ocaml-ci-api.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://ocaml.ci.dev/documentation"
bug-reports: "https://github.com/ocurrent/ocaml-ci/issues"
depends: [
"ocaml" {>= "4.14"}
"dune" {>= "3.16"}
"dune" {>= "3.20"}
"current_rpc"
"capnp" {>= "3.4.0"}
"capnp-rpc-lwt" {>= "1.2"}
Expand All @@ -32,3 +32,4 @@ build: [
]
]
dev-repo: "git+https://github.com/ocurrent/ocaml-ci.git"
x-maintenance-intent: ["(latest)"]
3 changes: 2 additions & 1 deletion ocaml-ci-client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://ocaml.ci.dev/documentation"
bug-reports: "https://github.com/ocurrent/ocaml-ci/issues"
depends: [
"ocaml" {>= "4.14"}
"dune" {>= "3.16"}
"dune" {>= "3.20"}
"ocaml-ci-api"
"current_rpc"
"capnp-rpc-unix" {>= "1.2"}
Expand All @@ -34,3 +34,4 @@ build: [
]
]
dev-repo: "git+https://github.com/ocurrent/ocaml-ci.git"
x-maintenance-intent: ["(latest)"]
3 changes: 2 additions & 1 deletion ocaml-ci-gitlab.opam
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ doc: "https://ocaml.ci.dev/documentation"
bug-reports: "https://github.com/ocurrent/ocaml-ci/issues"
depends: [
"ocaml" {>= "4.14"}
"dune" {>= "3.16"}
"dune" {>= "3.20"}
"ocaml-ci"
"ocaml-ci-service"
"current"
Expand Down Expand Up @@ -40,3 +40,4 @@ build: [
]
]
dev-repo: "git+https://github.com/ocurrent/ocaml-ci.git"
x-maintenance-intent: ["(latest)"]
3 changes: 2 additions & 1 deletion ocaml-ci-service.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://ocaml.ci.dev/documentation"
bug-reports: "https://github.com/ocurrent/ocaml-ci/issues"
depends: [
"ocaml" {>= "4.14"}
"dune" {>= "3.16"}
"dune" {>= "3.20"}
"ocaml-ci-api"
"current_git"
"current_github"
Expand Down Expand Up @@ -59,3 +59,4 @@ build: [
]
]
dev-repo: "git+https://github.com/ocurrent/ocaml-ci.git"
x-maintenance-intent: ["(latest)"]
3 changes: 2 additions & 1 deletion ocaml-ci-web.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://ocaml.ci.dev/documentation"
bug-reports: "https://github.com/ocurrent/ocaml-ci/issues"
depends: [
"ocaml" {>= "4.14"}
"dune" {>= "3.16"}
"dune" {>= "3.20"}
"ocaml-ci-api"
"tailwindcss"
"ansi" {>= "0.6.0"}
Expand Down Expand Up @@ -42,6 +42,7 @@ build: [
]
]
dev-repo: "git+https://github.com/ocurrent/ocaml-ci.git"
x-maintenance-intent: ["(latest)"]
pin-depends: [
["tailwindcss.dev" "https://github.com/tmattio/opam-tailwindcss/archive/e5bb6361a50c7cc5cad802311e609336583ca08f.tar.gz"]
]
3 changes: 2 additions & 1 deletion ocaml-ci.opam
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ doc: "https://ocaml.ci.dev/documentation"
bug-reports: "https://github.com/ocurrent/ocaml-ci/issues"
depends: [
"ocaml" {>= "4.14"}
"dune" {>= "3.16"}
"dune" {>= "3.20"}
"ocaml-ci-api"
"current"
"current_docker"
Expand Down Expand Up @@ -47,3 +47,4 @@ build: [
]
]
dev-repo: "git+https://github.com/ocurrent/ocaml-ci.git"
x-maintenance-intent: ["(latest)"]
2 changes: 1 addition & 1 deletion ocurrent
Submodule ocurrent updated 52 files
+29 −0 CHANGES.md
+2 −2 current.opam
+1 −0 current.opam.template
+2 −2 current_docker.opam
+1 −0 current_docker.opam.template
+2 −2 current_examples.opam
+1 −0 current_examples.opam.template
+4 −3 current_git.opam
+1 −0 current_git.opam.template
+5 −5 current_github.opam
+1 −0 current_github.opam.template
+2 −1 current_gitlab.opam
+1 −0 current_gitlab.opam.template
+2 −2 current_rpc.opam
+1 −0 current_rpc.opam.template
+3 −3 current_slack.opam
+1 −0 current_slack.opam.template
+1 −0 current_ssh.opam
+1 −0 current_ssh.opam.template
+6 −6 current_web.opam
+1 −0 current_web.opam.template
+12 −12 dune-project
+3 −1 lib/current.mli
+2 −2 lib/process.ml
+1 −0 lib/process.mli
+2 −0 lib_web/context.ml
+31 −7 lib_web/current_web.ml
+8 −2 lib_web/current_web.mli
+1 −0 lib_web/job.ml
+4 −1 lib_web/log_rules.ml
+4 −2 lib_web/resource.ml
+3 −2 lib_web/site.ml
+6 −0 lib_web/utils.ml
+14 −0 plugins/docker/auth.ml
+5 −0 plugins/docker/auth.mli
+2 −2 plugins/docker/cmd.ml
+10 −10 plugins/docker/current_docker.ml
+3 −2 plugins/docker/current_docker.mli
+2 −7 plugins/docker/pull.ml
+2 −7 plugins/docker/push.ml
+2 −7 plugins/docker/push_manifest.ml
+6 −3 plugins/docker/s.ml
+6 −6 plugins/git/cmd.ml
+12 −6 plugins/git/current_git.ml
+3 −1 plugins/git/current_git.mli
+1 −0 plugins/git/dune
+16 −5 plugins/github/api.ml
+4 −1 plugins/github/api.mli
+1 −1 plugins/github/current_github.ml
+4 −1 plugins/github/current_github.mli
+1 −1 plugins/gitlab/current_gitlab.ml
+1 −1 plugins/slack/post.ml
16 changes: 8 additions & 8 deletions service/conf.ml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ let openbsd_distros =
distro = "openbsd-77-amd64";
ocaml_version;
arch = `X86_64;
opam_version = `V2_4;
opam_version = `V2_5;
lower_bound = false;
})
default_compilers
Expand All @@ -116,7 +116,7 @@ let windows_distros =
distro = "windows-server-2022-amd64";
ocaml_version;
arch = `X86_64;
opam_version = `V2_4;
opam_version = `V2_5;
lower_bound = false;
})
default_compilers
Expand All @@ -132,7 +132,7 @@ let freebsd_distros =
distro = "freebsd-14.3";
ocaml_version;
arch = `X86_64;
opam_version = `V2_4;
opam_version = `V2_5;
lower_bound = false;
})
default_compilers
Expand All @@ -148,7 +148,7 @@ let macos_distros =
distro = "macos-homebrew";
ocaml_version;
arch = `X86_64;
opam_version = `V2_4;
opam_version = `V2_5;
lower_bound = false;
})
default_compilers
Expand All @@ -161,7 +161,7 @@ let macos_distros =
distro = "macos-homebrew";
ocaml_version;
arch = `Aarch64;
opam_version = `V2_4;
opam_version = `V2_5;
lower_bound = false;
})
default_compilers
Expand Down Expand Up @@ -345,9 +345,9 @@ let fetch_platforms ~query_uri ~include_macos ~include_freebsd ~include_windows
Platform.get_local ~arch ~label ~builder ~pool ~distro ~ocaml_version
~host_base ~opam_version ~lower_bound base
in
let v2_4 =
platforms ~profile:platforms_profile `V2_4 ~include_macos ~include_freebsd
let v2_5 =
platforms ~profile:platforms_profile `V2_5 ~include_macos ~include_freebsd
~include_windows ~include_openbsd
|> merge_lower_bound_platforms
in
Current.list_seq (List.map v v2_4) |> Current.map List.flatten
Current.list_seq (List.map v v2_5) |> Current.map List.flatten