chore(gitlab-ci): make uniworx and uniworxdb from make targets
This commit is contained in:
parent
6ffa1289e6
commit
5c2a33c918
@ -164,7 +164,7 @@ backend build:
|
|||||||
cache:
|
cache:
|
||||||
- *stack-cache
|
- *stack-cache
|
||||||
script:
|
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/hlint/hlint bin/test-hlint
|
||||||
- cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod
|
- cp $(stack path --dist-dir)/build/yesod/yesod bin/test-yesod
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
@ -190,12 +190,10 @@ backend build:
|
|||||||
interruptible: true
|
interruptible: true
|
||||||
resource_group: ram
|
resource_group: ram
|
||||||
|
|
||||||
uniworx:exe:uniworxdb:
|
uniworxdb:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
|
- "nix shell .#gnumake .#coreutils .#stack .#tzdata --command \"prepare-env && make bin/uniworxdb\""
|
||||||
- nix -L build -o result ".#uniworx:exe:uniworxdb"
|
|
||||||
- nix-store --export $(nix-store -qR result) | xz -T0 -2 > uniworx:exe:uniworxdb.nar.xz
|
|
||||||
before_script: *nix-before
|
before_script: *nix-before
|
||||||
needs:
|
needs:
|
||||||
- job: node modules # transitive
|
- job: node modules # transitive
|
||||||
@ -204,7 +202,7 @@ uniworx:exe:uniworxdb:
|
|||||||
artifacts: false
|
artifacts: false
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- uniworx:exe:uniworxdb.nar.xz
|
- bin/uniworxdb
|
||||||
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
name: "${CI_JOB_NAME}-${CI_COMMIT_SHORT_SHA}"
|
||||||
expire_in: "1 day"
|
expire_in: "1 day"
|
||||||
retry: 2
|
retry: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user