This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-07
Channels
- # announcements (9)
- # beginners (155)
- # bristol-clojurians (1)
- # calva (49)
- # chlorine-clover (36)
- # cider (10)
- # clara (6)
- # clj-kondo (14)
- # clojars (28)
- # clojure (226)
- # clojure-australia (1)
- # clojure-berlin (12)
- # clojure-czech (1)
- # clojure-europe (26)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-uk (32)
- # clojurescript (9)
- # conjure (21)
- # datascript (3)
- # datomic (43)
- # emacs (3)
- # figwheel-main (16)
- # fulcro (17)
- # graalvm (9)
- # helix (4)
- # lambdaisland (3)
- # malli (13)
- # off-topic (12)
- # pathom (7)
- # re-frame (10)
- # reitit (9)
- # rewrite-clj (2)
- # shadow-cljs (41)
- # spacemacs (6)
- # specter (3)
- # test-check (5)
- # tools-deps (9)
- # tree-sitter (1)
- # vim (15)
- # xtdb (3)
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?
@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
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)
for running GraalVM on CircleCI: all my GraalVM-based project run on CircleCI so check out any of those
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.
@ikitommi my recent dynaload project also is running a binary compiled with deps.edn: https://github.com/borkdude/dynaload
@ikitommi if you want to run unit tests our notes might help: https://github.com/lread/clj-graal-docs/blob/master/doc/testing-strategies.md