Skip to content

chore!: Use setup-ocaml@v3 #112

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

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

spotandjake
Copy link
Member

@spotandjake spotandjake commented Mar 23, 2025

This pr switches from setup-ocaml@v2 to setup-ocaml@v3.

I was trying to keep the CC and CCX changes out of the dune file but I couldn't find a way to override them in the opam file that was platform dependent, and I didn't see a real downside to doing it in the dune file.

Note:

  • We dropped support for 4.12.1 as setup-ocaml@v2 doesn't support it
  • I enabled 5.3.0 in its place so we can hopefully begin moving to ocaml v5
  • I also bumped our actions dependencies while I was playing around.

Closes: #96

@ospencer
Copy link
Member

Can you pin to the hashes like I did in grain-lang/binaryen.ml#201 ?

@spotandjake
Copy link
Member Author

Done as a separate question do we want to bump the node version we use to at least v18 if not lts (v22) as v16 is no longer being maintained. Given we are just using it for esy and npm It shouldn't affect anything either way (happy todo this in a seperate pr).

@ospencer
Copy link
Member

22 is fine since it's LTS now. I like it in the other PR.

@ospencer ospencer changed the title feat: Use setup-ocaml@v3 and enable v5 builds chore!: Use setup-ocaml@v3 Mar 28, 2025
package.json Outdated
@@ -5,7 +5,7 @@
"author": "Blaine Bublitz <blaine@grain-lang.org>",
"license": "Apache-2.0",
"dependencies": {
"ocaml": ">= 4.12.0 < 5.0.0",
"ocaml": ">= 4.13.0 < 5.0.0",
Copy link
Member

Choose a reason for hiding this comment

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

This should be updated to support 5.0.x releases:

Suggested change
"ocaml": ">= 4.13.0 < 5.0.0",
"ocaml": ">= 4.13.0 < 5.1.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.

Shouldn't my other pr for supporting ocaml 5 do that?

feat: Support OCaml 5
chore!: Drop support for OCaml 4.12
@ospencer ospencer force-pushed the spotandjake-dep-upgrade branch from bf96a4b to bbd8fe7 Compare March 28, 2025 14:44
@ospencer
Copy link
Member

I fixed up the versions. As long as CI passes this is good to go.

@ospencer
Copy link
Member

Woo!

@ospencer ospencer merged commit bad98c6 into grain-lang:main Mar 28, 2025
13 checks passed
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.

Investigate ubuntu-latest in CI
2 participants