add graal to ci

This commit is contained in:
Michael Jerger 2024-02-17 09:05:16 +01:00
parent bfdaf2f471
commit 1e727c154b
3 changed files with 25 additions and 12 deletions

View file

@ -6,7 +6,7 @@ stages:
- image
.img: &img
image: "domaindrivenarchitecture/ddadevops-dind:4.10.7"
image: "domaindrivenarchitecture/ddadevops-dind:4.11.3"
services:
- docker:dind
before_script:
@ -16,7 +16,7 @@ stages:
- export IMAGE_TAG=$CI_COMMIT_TAG
.cljs-job: &cljs
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.7"
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.11.3"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
@ -29,7 +29,7 @@ stages:
- npm install
.clj-job: &clj
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.7"
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.11.3"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
@ -93,6 +93,15 @@ package-uberjar:
paths:
- target/uberjar
package-native:
<<: *clj
stage: package
script:
- pyb package_native
artifacts:
paths:
- target/graalvm
release-to-clojars:
<<: *clj
<<: *tag_only

View file

@ -29,6 +29,7 @@ def initialize(project):
"release_organisation": "meissa",
"release_repository_name": name,
"release_artifacts": [
"target/graalvm/c4k-forgejo",
"target/uberjar/c4k-forgejo-standalone.jar",
"target/frontend-build/c4k-forgejo.js",
],
@ -106,6 +107,7 @@ def package_uberjar(project):
check=True,
)
@task
def package_native(project):
run(
@ -118,6 +120,17 @@ def package_native(project):
shell=True,
check=True,
)
run(
"sha256sum target/graalvm/c4k-forgejo > target/graalvm/c4k-forgejo.sha256",
shell=True,
check=True,
)
run(
"sha512sum target/graalvm/c4k-forgejo > target/graalvm/c4k-forgejo.sha512",
shell=True,
check=True,
)
@task
def inst(project):

View file

@ -1,9 +0,0 @@
{
"resources": {
"includes": [
{
"pattern": ".*.yaml"
}
]
}
}