Build uberjar using graalvm
This commit is contained in:
parent
ac1b16bfc8
commit
a5dec07279
2 changed files with 9 additions and 5 deletions
|
|
@ -72,14 +72,16 @@
|
||||||
"java -jar ./target/babashka-$(cat resources/BABASHKA_VERSION)-standalone.jar .circleci/script/docker.clj"}}]))))
|
"java -jar ./target/babashka-$(cat resources/BABASHKA_VERSION)-standalone.jar .circleci/script/docker.clj"}}]))))
|
||||||
|
|
||||||
(defn jvm
|
(defn jvm
|
||||||
[shorted?]
|
[shorted? graalvm-home]
|
||||||
(gen-job
|
(gen-job
|
||||||
shorted?
|
shorted?
|
||||||
(ordered-map
|
(ordered-map
|
||||||
:docker [{:image "circleci/clojure:openjdk-11-lein-2.9.8-bullseye"}]
|
:docker [{:image "circleci/clojure:openjdk-11-lein-2.9.8-bullseye"}]
|
||||||
:working_directory "~/repo"
|
:working_directory "~/repo"
|
||||||
:environment {:LEIN_ROOT "true"
|
:environment {:LEIN_ROOT "true"
|
||||||
:BABASHKA_PLATFORM "linux"}
|
:BABASHKA_PLATFORM "linux"
|
||||||
|
:GRAALVM_VERSION "22.3.0"
|
||||||
|
:GRAALVM_HOME graalvm-home}
|
||||||
:resource_class "large"
|
:resource_class "large"
|
||||||
:steps
|
:steps
|
||||||
(gen-steps
|
(gen-steps
|
||||||
|
|
@ -89,6 +91,7 @@
|
||||||
{:restore_cache {:keys ["v1-dependencies-{{ checksum \"project.clj\" }}-{{ checksum \"deps.edn\" }}"
|
{:restore_cache {:keys ["v1-dependencies-{{ checksum \"project.clj\" }}-{{ checksum \"deps.edn\" }}"
|
||||||
"v1-dependencies-"]}}
|
"v1-dependencies-"]}}
|
||||||
(run "Install Clojure" "sudo script/install-clojure")
|
(run "Install Clojure" "sudo script/install-clojure")
|
||||||
|
(run "Download GraalVM" "script/install-graalvm")
|
||||||
(run
|
(run
|
||||||
"Run JVM tests"
|
"Run JVM tests"
|
||||||
"export BABASHKA_FEATURE_JDBC=true
|
"export BABASHKA_FEATURE_JDBC=true
|
||||||
|
|
@ -192,7 +195,7 @@ java -jar \"$jar\" --config .build/bb.edn --deps-root . release-artifact \"$refl
|
||||||
:command
|
:command
|
||||||
"docker run --privileged --rm tonistiigi/binfmt --install all\ndocker buildx create --name ci-builder --use"}}]}}
|
"docker run --privileged --rm tonistiigi/binfmt --install all\ndocker buildx create --name ci-builder --use"}}]}}
|
||||||
:jobs (ordered-map
|
:jobs (ordered-map
|
||||||
:jvm (jvm shorted?)
|
:jvm (jvm shorted? linux-graalvm-home)
|
||||||
:linux (unix shorted? false false "amd64" docker-executor-conf "large" linux-graalvm-home "linux")
|
:linux (unix shorted? false false "amd64" docker-executor-conf "large" linux-graalvm-home "linux")
|
||||||
:linux-static
|
:linux-static
|
||||||
(unix shorted? true true "amd64" docker-executor-conf "large" linux-graalvm-home "linux")
|
(unix shorted? true true "amd64" docker-executor-conf "large" linux-graalvm-home "linux")
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,7 @@
|
||||||
:deps/manifest :deps}
|
:deps/manifest :deps}
|
||||||
lambdaisland/uri {:git/url "https://github.com/lambdaisland/uri"
|
lambdaisland/uri {:git/url "https://github.com/lambdaisland/uri"
|
||||||
:git/sha "ac4f1f9c8e4f45a088db1c6383ce2191c973987c"
|
:git/sha "ac4f1f9c8e4f45a088db1c6383ce2191c973987c"
|
||||||
:deps/manifest :deps}
|
:deps/manifest :deps}
|
||||||
clj-commons/fs {:mvn/version "1.6.310"}
|
clj-commons/fs {:mvn/version "1.6.310"}
|
||||||
postmortem/postmortem {:git/url "https://github.com/athos/Postmortem"
|
postmortem/postmortem {:git/url "https://github.com/athos/Postmortem"
|
||||||
:git/sha "1a29775a3d286f9f6fe3f979c78b6e2bf298d5ba"}}
|
:git/sha "1a29775a3d286f9f6fe3f979c78b6e2bf298d5ba"}}
|
||||||
|
|
@ -170,7 +170,8 @@
|
||||||
:test
|
:test
|
||||||
{:extra-paths ["test"]
|
{:extra-paths ["test"]
|
||||||
:extra-deps {io.github.cognitect-labs/test-runner
|
:extra-deps {io.github.cognitect-labs/test-runner
|
||||||
{:git/tag "v0.5.0" :git/sha "b3fd0d2"}}
|
{:git/tag "v0.5.0" :git/sha "b3fd0d2"}
|
||||||
|
nubank/matcher-combinators {:mvn/version "3.6.0"}}
|
||||||
:main-opts ["-m" "cognitect.test-runner"]
|
:main-opts ["-m" "cognitect.test-runner"]
|
||||||
:exec-fn cognitect.test-runner.api/test}
|
:exec-fn cognitect.test-runner.api/test}
|
||||||
:test-pod
|
:test-pod
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue