feature/native-build #4
3 changed files with 44 additions and 3 deletions
41
build.py
41
build.py
|
@ -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.
|
@ -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,10 @@
|
||||||
"--report-unsupported-elements-at-runtime"
|
"--report-unsupported-elements-at-runtime"
|
||||||
"--no-server"
|
"--no-server"
|
||||||
"--no-fallback"
|
"--no-fallback"
|
||||||
|
"-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"
|
||||||
|
|
Loading…
Reference in a new issue