From 1e727c154b1bf30acad04757ff1de62614de2580 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sat, 17 Feb 2024 09:05:16 +0100 Subject: [PATCH] add graal to ci --- .gitlab-ci.yml | 15 ++++++++++++--- build.py | 13 +++++++++++++ graalvm-resource-config.json | 9 --------- 3 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 graalvm-resource-config.json diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fba2f21..ce58f78 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/build.py b/build.py index 8810384..b06c2d4 100644 --- a/build.py +++ b/build.py @@ -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): diff --git a/graalvm-resource-config.json b/graalvm-resource-config.json deleted file mode 100644 index e06faaa..0000000 --- a/graalvm-resource-config.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "resources": { - "includes": [ - { - "pattern": ".*.yaml" - } - ] - } -} \ No newline at end of file