-
Notifications
You must be signed in to change notification settings - Fork 40
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
How does setup-ocaml chooses opam versions? (ci failure with 4.08.1 on macos) #861
Comments
@mbarbin See this PR #862. There are some pitfalls except for Ubuntu. It's a matter of compiler support, so we can't fix it here. Here is what I usually do.
So, in YAML, it should look like this: strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- "4.08"
- "5"
include:
- os: macos-latest
ocaml-compiler: "5"
- os: windows-latest
ocaml-compiler: "5" |
@smorimoto Thank you very much for the new documentation PR, that is very helpful! I have two follow up questions:
|
@mbarbin The default macOS architecture has changed from x86_64 to ARM64 in the past. If you need macOS x86_64 I would suggest using an explicit version over using eg
|
@tmcgilchrist thanks for jumping in, and very nice to hear from you. This clarifies it for me, thank you both! I have also found another repo where they made the switch to macos-13 for this reason. Linking in to illustrate : ocaml-sf/learn-ocaml#603 I think this thread covered all of my questions, I'll be closing the issue. Thanks again. |
Hello!
I am not sure where to best report this issue, I'll start with
setup-ocaml
and please you can help me determine whether this is rather something for theopam
devs.I am encountering build issues in pp's PR 21 CI, specifically the build for
macos-latest, 4.08.x
In the log, I can see that the opam selected is this:
And then later:
I think this error makes sense, given that in the opam configuration for this package, there is this line:
I am wondering if there are other
arch
available that would make this build succeed, and if so, how to forcesetup-ocaml
to select it. I might very well be confused about the fact thatarch = arm64
has anything to do with the fact thatopam-2.2.1-arm64-macos
is selected (I am out of my depth here).Thanks for your help!
The text was updated successfully, but these errors were encountered: