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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Require Ocaml 4.12 & update depedencies to support it #108
Conversation
with: | ||
ocaml-version: ${{ matrix.ocaml-version }} | ||
|
||
# I'm not exactly sure what the `opam pin` does | ||
- name: Setup environment | ||
run: | | ||
opam pin add binaryen.dev . --no-action | ||
opam depext binaryen --yes --with-doc --with-test |
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.
MacOS no longer gets depext installed (by default?). Luckily we don't need it.
@@ -21,15 +21,14 @@ jobs: | |||
submodules: 'recursive' | |||
|
|||
- name: Setup OCaml ${{ matrix.ocaml-version }} | |||
uses: avsm/setup-ocaml@v1 | |||
uses: ocaml/setup-ocaml@v1.1.12 |
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.
Pin this shit...
"@opam/ocamlformat": "^0.15.0", | ||
"@opam/ocaml-lsp-server": "^1.1.0" | ||
"@opam/js_of_ocaml-compiler": "^3.10.0", | ||
"@opam/ocamlformat": "0.18.0", |
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.
0.19.0 doesn't work on windows because they added ocp-indent to their deps which tries to do things with symlinks or something. Pin to 0.18 which supports ocaml 4.12
caml_alloc_some(value v) { | ||
CAMLparam1(v); | ||
value some = caml_alloc_small(1, 0); | ||
Store_field(some, 0, v); | ||
CAMLreturn(some); | ||
} |
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.
OCaml 4.12 added this to the core
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.
Good stuff!
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.
Nice!
Finally have CI passing. It's really frustrating to come back to projects and the CI has rotted. 馃槶