Compare commits

...

2 commits

Author SHA1 Message Date
75e0b293c8 use graal_build_time 2024-02-16 17:05:43 +01:00
ce90b2515b add inst ty pyb 2024-02-16 16:55:26 +01:00
3 changed files with 45 additions and 3 deletions

View file

@ -106,6 +106,47 @@ def package_uberjar(project):
check=True, check=True,
) )
@task
def package_native(project):
run(
"mkdir -p target/graalvm",
shell=True,
check=True,
)
run(
"lein native",
shell=True,
check=True,
)
@task
def inst(project):
run(
"lein uberjar",
shell=True,
check=True,
)
run(
"mkdir -p target/graalvm",
shell=True,
check=True,
)
run(
"lein native",
shell=True,
check=True,
)
run(
"sudo install -m=755 target/uberjar/c4k-forgejo-standalone.jar /usr/local/bin/c4k-forgejo-standalone.jar",
shell=True,
check=True,
)
run(
"sudo install -m=755 target/graalvm/c4k-forgejo /usr/local/bin/c4k-forgejo",
shell=True,
check=True,
)
@task @task
def upload_clj(project): def upload_clj(project):

Binary file not shown.

View file

@ -26,7 +26,7 @@
[ch.qos.logback/logback-classic "1.4.14" [ch.qos.logback/logback-classic "1.4.14"
:exclusions [com.sun.mail/javax.mail]] :exclusions [com.sun.mail/javax.mail]]
[org.slf4j/jcl-over-slf4j "2.0.12"] [org.slf4j/jcl-over-slf4j "2.0.12"]
[com.github.clj-easy/graal-build-time "0.1.5"]]}} [com.github.clj-easy/graal-build-time "1.0.5"]]}}
:release-tasks [["test"] :release-tasks [["test"]
["vcs" "assert-committed"] ["vcs" "assert-committed"]
["change" "version" "leiningen.release/bump-version" "release"] ["change" "version" "leiningen.release/bump-version" "release"]
@ -40,10 +40,11 @@
"--report-unsupported-elements-at-runtime" "--report-unsupported-elements-at-runtime"
"--no-server" "--no-server"
"--no-fallback" "--no-fallback"
"--features=clj_easy.graal_build_time.InitClojureClasses"
"-jar" "target/uberjar/c4k-forgejo-standalone.jar"
"-H:IncludeResources=.*.yaml" "-H:IncludeResources=.*.yaml"
"-H:Log=registerResource:verbose" "-H:Log=registerResource:verbose"
"-H:Name=target/graalvm/${:name}" "-H:Name=target/graalvm/${:name}"
"-jar" "target/uberjar/c4k-forgejo-standalone.jar"
] ]
"inst" ["shell" "inst" ["shell"
"sh" "sh"