-
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
Beta versions of the compiler support could be improved #232
Comments
And using
|
@voodoos - you need to add the ocaml-beta-repository explicitly, then that should work |
I don’t think it should be extended to recognise that version string - the input is it intended to be an opam package version, but access to betas could definitely be improved, perhaps more along the lines of:
or some such. The main thing would be not specify the alpha, beta or rc number |
I totally agree. Well in the first place I was expecting setup-ocaml to use opam 2.1 so having a |
For the record here is the configuration that works for us: build:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ocaml-compiler:
- ocaml-base-compiler.4.13.0~beta1
runs-on: ${{ matrix.os }}
steps:
- ...
- name: Set up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
# Version of the OCaml compiler to initialise
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
beta: https://github.com/ocaml/ocaml-beta-repository.git |
@kit-ty-kate - you're right, it shouldn't be necessary to have to specify either the beta repository or the fact betas are wanted. Saying |
@voodoos' suggestion is good. Also, in the jsoo repository, I wrote something quite similar: https://github.com/ocsigen/js_of_ocaml/blob/c5b53bf1eb034a229a47e1f226097d81b5b279ba/.github/workflows/build.yml#L59-L84 |
Any chance this could be fixed? Making PRs for adding 4.14 support is really painful |
I was just looking at this. There are already enough features to do this, so if we are going to improve this, we have to add a higher level of functionality, and I'm still not sure how meaningful that really is. |
With the following workflow file: https://github.com/ocaml/merlin/blob/56e0601ad40995421ae9e3537158af30559fb65f/.github/workflows/main.yml
Is not understood as a valid compiler version and will instead expect it to be a package name, which makes opam fail with:
This is a valid version string for opam and expliciting
ocaml-base-compiler.4.13.0~beta1
shouldn't be required.The text was updated successfully, but these errors were encountered: