feature/native-build #4

Merged
jem merged 10 commits from feature/native-build into main 2024-02-17 10:51:07 +00:00
3 changed files with 25 additions and 12 deletions
Showing only changes of commit 1e727c154b - Show all commits

View file

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

View file

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

View file

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