setup-ocaml icon indicating copy to clipboard operation
setup-ocaml copied to clipboard

If you are using this Action, do comment here

Open avsm opened this issue 4 years ago • 49 comments

Just recording existing users of it to look at how it's being used. Feel free to comment here with your own Yaml files!

avsm avatar Nov 21 '19 14:11 avsm

Thanks for publishing this. I've started using this instead of travis for my project https://github.com/anuragsoni/routes/tree/master/.github/workflows

I'm using ubuntu to test various versions for pull-requests, then on merge i run an action to test on windows + mac + linux. I'm also using an action to run ocamlformat and automatically open a pull request (if any changes are needed) with the formatting fixes. So far the experience is really great :smile:

anuragsoni avatar Nov 23 '19 16:11 anuragsoni

I did notice one issue with the windows builds when running with a pull-request trigger. It fails with an error about --working-dir not active. The windows action works fine with a push trigger. Some logs can be seen at https://gist.github.com/anuragsoni/198f8b8773c9e686b727c77e0079adba

anuragsoni avatar Nov 23 '19 16:11 anuragsoni

Hi,

We're using this action as part of our CI at ocaml-flambda (you can find our yml files here). We're actually using it only for installing (and initializing) opam, as we need to create custom switches, but it works great for that.

We've just noticed that caching the .opam directory seems to (kind of) work, and we plan to take advantage of it. If you have any insights on how this would interact with this Action, we'd love to hear it.

lthls avatar Jan 17 '20 17:01 lthls

I'm using it, pretty much just copy-pasted your hello world example, except just compiling for ubuntu. Worked right out of the box. Thanks a million! :+1:

carlosdagos avatar Jan 29 '20 02:01 carlosdagos

I already use this in some industrial projects. Great work!

smorimoto avatar Feb 11 '20 18:02 smorimoto

Just saw this issue I've been using it for a while on all kinds of projects (mostly private). I was at your talk at ReasonML London and I was dying to try it :)

giltho avatar Mar 03 '20 18:03 giltho

I'm using it in Luv. It saved me a lot of time, as I was looking at manually installing Cygwin in the Windows runners before I found this! That would also have required a separate job definition from the Unix jobs.

aantron avatar Mar 14 '20 05:03 aantron

I'm using this in PingCAP.

This action helps me building an exec to upload static assets to the cloud buckets. And also saving my time to install Opam hand by hand. Very thx.

Here is the yml file.~

https://github.com/pingcap/cloud-assets-utils/blob/master/.github/workflows/test.yml

g1eny0ung avatar Mar 25 '20 07:03 g1eny0ung

I'm using this in:

Thank you so much! That is a wonderful tool.

hcarty avatar May 05 '20 03:05 hcarty

I'm using this in https://github.com/jonsterling/cooltt/blob/master/.github/workflows/ocaml.yml

jonsterling avatar May 08 '20 16:05 jonsterling

Amar1729 avatar Jun 08 '20 05:06 Amar1729

I'm using this in https://github.com/pl-deadlines/pl-deadlines.github.io

atrieu avatar Aug 28 '20 09:08 atrieu

I've been using it for a couple weeks now: https://github.com/leviroth/ocaml-reddit-api

leviroth avatar Sep 08 '20 22:09 leviroth

I've started using this with an OCaml to Erlang compiler: caramel

leostera avatar Sep 30 '20 11:09 leostera

We've been using it for a while (@psafont set it up): https://github.com/xapi-project/xs-opam/blob/master/.github/workflows/main.yml#L43. We also have an opam cache configured.

edwintorok avatar Nov 25 '20 09:11 edwintorok

xs-opam is a custom opam repo for the xapi project.

We're loading it for the biggest and most modified package we have in github actions as well: https://github.com/xapi-project/xen-api/blob/master/.github/workflows/main.yml

Additionally a common .env file is used to configure the ENV vars in the CI for 26 repositories, most of them using travis :(

psafont avatar Nov 25 '20 10:11 psafont

I wanted to try out the new hotness in CI for a new library. It took a while but I even managed to make it generate the doc and auto-push it to github-pages: https://github.com/Drup/peahell/blob/master/.github/workflows/workflow.yml

Drup avatar Dec 05 '20 20:12 Drup

I'm using the Action for my raylib bindings, it's been really helpful so far https://github.com/tjammer/raylib-ocaml/blob/master/.github/workflows/main.yml

tjammer avatar Dec 06 '20 10:12 tjammer

Using it for touist! ✨

maelvls avatar Dec 23 '20 18:12 maelvls

I've been working on rewriting the action. And now it can be set up OCaml enviroment on all platforms except Windows in about 50 seconds. (As you know, it used to take about 8 minutes...) Is there any tester who can try it?

smorimoto avatar Dec 29 '20 23:12 smorimoto

@smorimoto Awesome! I'm quite interested in this change, should I use the avsm/setup-ocaml@master to test it?

g1eny0ung avatar Dec 30 '20 03:12 g1eny0ung

No, it's published under the actions-ml organization. But at this time, it's not clear where it will be managed, and use it knowing that some migration may be required. https://github.com/actions-ml/setup-ocaml

smorimoto avatar Dec 30 '20 04:12 smorimoto

No, it's published under the actions-ml organization. But at this time, it's not clear where it will be managed, and use it knowing that some migration may be required. https://github.com/actions-ml/setup-ocaml

Know about it. I will try to use it when the doc is available. 😄

g1eny0ung avatar Dec 30 '20 04:12 g1eny0ung

The API is exactly the same at this time.

https://github.com/actions-ml/setup-ocaml/blob/master/action.yml

So you can use it by doing the following:

- name: Use OCaml ${{ matrix.ocaml-version }}
  uses: actions-ml/setup-ocaml@master
  with:
    ocaml-version: ${{ matrix.ocaml-version }}

smorimoto avatar Dec 30 '20 04:12 smorimoto

The API is exactly the same at this time.

https://github.com/actions-ml/setup-ocaml/blob/master/action.yml

So you can use it by doing the following:

- name: Use OCaml ${{ matrix.ocaml-version }}
  uses: actions-ml/setup-ocaml@master
  with:
    ocaml-version: ${{ matrix.ocaml-version }}

To https://github.com/actions-ml/setup-ocaml/discussions/2.

g1eny0ung avatar Dec 30 '20 05:12 g1eny0ung

All of the efforts and useful exploration results at actions-ml are being pushed back to the upstream: avsm/setup-ocaml#66

smorimoto avatar Mar 29 '21 18:03 smorimoto

I just released the first v2 alpha release. https://discuss.ocaml.org/t/ann-set-up-ocaml-2-0-0-alpha/7895

smorimoto avatar May 22 '21 19:05 smorimoto

Thank you for your work @smorimoto ❤️

giltho avatar May 22 '21 19:05 giltho

@giltho Thank you for your kind comment :)

smorimoto avatar May 24 '21 00:05 smorimoto

I'm using this in ocaml-aws along with some private OCaml projects. Works really nicely!

tmcgilchrist avatar Jun 15 '21 00:06 tmcgilchrist