diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e3187f97..a5d07fe65 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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