Fix the compilation of opam on Windows with OCaml >= 5.0 (again)#6216
Fix the compilation of opam on Windows with OCaml >= 5.0 (again)#6216kit-ty-kate merged 5 commits intoocaml:masterfrom
Conversation
4c91813 to
b070f1c
Compare
|
I've merged #6211 (with additional improvements) into this PR because it makes more sense as one given this adds an actual CI for Windows + OCaml5. |
3b689af to
95efe56
Compare
95efe56 to
f2ded15
Compare
dra27
left a comment
There was a problem hiding this comment.
Notes only - this looks good to go, thank you!
.github/workflows/ci.ml
Outdated
| matrix, []) | ||
| ([], [ | ||
| [("host", "x86_64-pc-cygwin"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml4)]; | ||
| [("host", "i686-w64-mingw32"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml4)]; |
There was a problem hiding this comment.
How about having the mingw-w64 i686 test OCaml 5.2.0 and the MSVC i686 test OCaml 4.14.2?
| [("host", "i686-w64-mingw32"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml4)]; | |
| [("host", "i686-w64-mingw32"); ("build", "x86_64-pc-cygwin"); ("ocamlv", latest_ocaml5)]; |
There was a problem hiding this comment.
I think this would trigger the tests for the platform and it would be way too slow
rjbou
left a comment
There was a problem hiding this comment.
Some nitpicking, otherwise, lgtm!!
Commit "GHA: Add OCaml 5.2.0 to the build matrix" adds 5.2.0 and adds also the possibility to have more that 1 version to test on all jobs. Commit text should reflect that, or the commit should be splitted in two.
bc0bcc1 to
e00f163
Compare
e00f163 to
f7e64c7
Compare
…t more than one default version
Windows is an exception since MSVC isn't supported yet (will be in 5.3.0), and Cygwin fails when used in combination with C++ stubs. So only MinGW x86_64 is tested because it's the only one that both works and is reasonably fast to run (i686 is too slow since it's using bytecode).
…upported by master This marginally increases build time (by 30s best case scenario) but is a necessary fix
f7e64c7 to
af04f8b
Compare
It seems that after a couple of rebase of #6189 we forgot to commit one change to
OpamStubs.ocaml5.mlwhich actually means that the file doesn't compile (since the Windows+OCaml5 combination wasn't tested in our CI).This here PR should fix this issue for good.
Backported to 2.3 in #6224