Skip to content
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

Merged
merged 1 commit into from Sep 14, 2021

Conversation

phated
Copy link
Member

@phated phated commented Sep 14, 2021

Finally have CI passing. It's really frustrating to come back to projects and the CI has rotted. 馃槶

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
Copy link
Member Author

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
Copy link
Member Author

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",
Copy link
Member Author

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

Comment on lines -11 to -16
caml_alloc_some(value v) {
CAMLparam1(v);
value some = caml_alloc_small(1, 0);
Store_field(some, 0, v);
CAMLreturn(some);
}
Copy link
Member Author

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

Copy link
Member

@marcusroberts marcusroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff!

Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@phated phated merged commit 36eedea into master Sep 14, 2021
@phated phated deleted the phated/ocaml-4.12 branch September 14, 2021 21:10
@github-actions github-actions bot mentioned this pull request Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants