Skip to content

Commit b0fee6d

Browse files
authored
Merge pull request #6670 from kit-ty-kate/ocaml-5.5
Add support for OCaml 5.5
2 parents 223e0b4 + 9ca5b3f commit b0fee6d

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.github/workflows/ci.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ let main_build_job ~analyse_job ~cygwin_job ?section runner start_version ~oc ~w
337337
let matrix = ((platform <> Windows), matrix, includes) in
338338
let needs = if platform = Windows then [analyse_job; cygwin_job] else [analyse_job] in
339339
let host = host_of_platform platform in
340+
let continue_on_error_trunk = Printf.sprintf "${{ matrix.ocamlv == '%s' }}" trunk in
340341
job ~oc ~workflow ~runs_on:(Runner [runner]) ?shell ?section ~needs ~matrix ("Build-" ^ name_of_platform platform)
341342
++ only_on Linux (run "Install bubblewrap" ["sudo apt install bubblewrap"])
342343
++ only_on Linux (run "Disable AppArmor" ["echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns"])
@@ -349,8 +350,8 @@ let main_build_job ~analyse_job ~cygwin_job ?section runner start_version ~oc ~w
349350
++ only_on Windows (unpack_cygwin "${{ matrix.build }}" "${{ matrix.host }}")
350351
++ only_on Windows (run "Cygwin info" ["uname -a"])
351352
++ build_cache OCaml platform "${{ matrix.ocamlv }}" host
352-
++ run ~id:"build" ~continue_on_error:(Printf.sprintf "${{ matrix.ocamlv == '%s' }}" trunk) "Build" ["bash -exu .github/scripts/main/main.sh " ^ host]
353-
++ not_on Windows (run ~cond:(Predicate(false, Compare("steps.build.outcome", "failure"))) "Test (basic)" ["bash -exu .github/scripts/main/test.sh"])
353+
++ run ~id:"build" ~continue_on_error:continue_on_error_trunk "Build" ["bash -exu .github/scripts/main/main.sh " ^ host]
354+
++ not_on Windows (run ~continue_on_error:continue_on_error_trunk ~cond:(Predicate(false, Compare("steps.build.outcome", "failure"))) "Test (basic)" ["bash -exu .github/scripts/main/test.sh"])
354355
++ only_on Windows (run ~cond:(Predicate(false, EndsWith("matrix.host", "-pc-cygwin"))) "Test \"static\" binaries on Windows" ["ldd ./opam.exe | test \"$(grep -v -F /cygdrive/c/Windows/)\" = ''"])
355356
++ only_on Windows
356357
(uses "Upload opam binaries for Windows"

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ jobs:
138138
continue-on-error: ${{ matrix.ocamlv == 'trunk' }}
139139
run: bash -exu .github/scripts/main/main.sh x86_64-pc-linux-gnu
140140
- name: Test (basic)
141+
continue-on-error: ${{ matrix.ocamlv == 'trunk' }}
141142
if: steps.build.outcome != 'failure'
142143
run: bash -exu .github/scripts/main/test.sh
143144

@@ -289,6 +290,7 @@ jobs:
289290
continue-on-error: ${{ matrix.ocamlv == 'trunk' }}
290291
run: bash -exu .github/scripts/main/main.sh x86_64-apple-darwin
291292
- name: Test (basic)
293+
continue-on-error: ${{ matrix.ocamlv == 'trunk' }}
292294
if: steps.build.outcome != 'failure'
293295
run: bash -exu .github/scripts/main/test.sh
294296

master_changes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ users)
7676
## Build
7777
* opam no longer depends on `cmdliner` [#6755 @kit-ty-kate - fix #6425]
7878
* Clean variables before calling make on different projects to avoid clashes [#6769 @kit-ty-kate]
79+
* Add the upcoming OCaml 5.5 (trunk) support when using dune's dev profile [#6670 @kit-ty-kate]
7980

8081
## Infrastructure
8182

@@ -119,6 +120,7 @@ users)
119120
## Github Actions
120121
* Add OCaml 5.4 to the test matrix [#6732 @kit-ty-kate]
121122
* Ensure `curl`'s exit status to be non-zero on failure [#6684 @kit-ty-kate]
123+
* Add OCaml trunk to the test matrix [#6684 #6670 @kit-ty-kate]
122124

123125
## Doc
124126

src/client/opamTreeCommand.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
open OpamTypes
1313
open OpamStateTypes
1414

15-
type deps
16-
type revdeps
15+
type deps = private [`deps]
16+
type revdeps = private [`revdeps]
1717
type 'a node =
1818
| Root of package
1919
| Dependency : {

0 commit comments

Comments
 (0)