chore(gitlab-ci): make uniworx and uniworxdb from make targets

This commit is contained in:
Sarah Vaupel 2024-06-20 17:16:19 +02:00
parent 6ffa1289e6
commit 5c2a33c918

View File

@ -164,7 +164,7 @@ backend build:
cache:
- *stack-cache
script:
- "nix shell .#gnumake .#coreutils .#stack .#tzdata --command \"prepare-env && make backend-build-prod\""
- "nix shell .#gnumake .#coreutils .#stack .#tzdata --command \"prepare-env && make bin/uniworx\""
- cp $(stack path --dist-dir)/build/hlint/hlint bin/test-hlint
- cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod
before_script: *nix-before
@ -190,12 +190,10 @@ backend build:
interruptible: true
resource_group: ram
uniworx:exe:uniworxdb:
uniworxdb:
stage: build
script:
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
- nix -L build -o result ".#uniworx:exe:uniworxdb"
- nix-store --export $(nix-store -qR result) | xz -T0 -2 > uniworx:exe:uniworxdb.nar.xz
- "nix shell .#gnumake .#coreutils .#stack .#tzdata --command \"prepare-env && make bin/uniworxdb\""
before_script: *nix-before
needs:
- job: node modules # transitive
@ -204,7 +202,7 @@ uniworx:exe:uniworxdb:
artifacts: false
artifacts:
paths:
- uniworx:exe:uniworxdb.nar.xz
- bin/uniworxdb
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
expire_in: "1 day"
retry: 2