Fork me on GitHub
#graalvm
<
2020-10-07
>
ikitommi14:10:55

hi, I would like to ensure a lib (https://github.com/metosin/malli) works with GraalVM. Any tips / samples on how to add a CircleCI-graalvm build for a deps-project?

borkdude14:10:12

@ikitommi check out https://github.com/lread/clj-graal-docs for a hello world project using deps.edn. it also has notes on testing. I usually create a small command line app which I test on the JVM by shelling out to that CLI

borkdude14:10:03

the only difference between lein and deps.edn is: with deps.edn you call compile yourself on your main file and then you don't add the uberjar to GraalVM, but the classpath containing the compiled classes, so like --classpath $(clojure -Spath:classes)

borkdude14:10:52

for running GraalVM on CircleCI: all my GraalVM-based project run on CircleCI so check out any of those

ikitommi14:10:13

will follow that guideline & your project for the circleci, thanks!

borkdude14:10:46

Alternatively you could also try to hook malli into babashka and then run babashka's clojure.test with your existing tests. This will be a more extensive test, but also probably more work.

borkdude14:10:31

I know @lee has done this before with rewrite-cljc

borkdude14:10:03

@ikitommi my recent dynaload project also is running a binary compiled with deps.edn: https://github.com/borkdude/dynaload