-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the compilation of opam on Windows with OCaml >= 5.0 (again) #6216
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this would trigger the tests for the platform and it would be way too slow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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.ml
which 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