chore(gitlab-ci): remove deprecated targets; rename uniworx->backend build

This commit is contained in:
Sarah Vaupel 2024-07-09 01:25:37 +02:00
parent 140c875668
commit fd7b792b4b

View File

@ -109,15 +109,15 @@ frontend build:
- static/ - static/
- config/webpack.yml - config/webpack.yml
uniworx: backend build:
stage: build stage: build
cache: cache:
- *stack-cache - *stack-cache
script: script:
- make bin/uniworx - make bin/uniworx
- find .stack-work # - find .stack-work
- 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
needs: needs:
- job: frontend dependencies # transitive - job: frontend dependencies # transitive
artifacts: false artifacts: false
@ -132,35 +132,37 @@ uniworx:
- bin/ - bin/
resource_group: ram resource_group: ram
uniworxdb: # TODO: part of backend build; probably deprecated
stage: build # uniworxdb:
script: # stage: build
- make bin/uniworxdb # script:
needs: # - make bin/uniworxdb
# TODO: no frontend needed # needs:
- job: frontend dependencies # transitive # # TODO: no frontend needed
artifacts: false # - job: frontend dependencies # transitive
- job: frontend build # transitive # artifacts: false
artifacts: false # - job: frontend build # transitive
artifacts: # artifacts: false
paths: # artifacts:
- bin/uniworxdb # paths:
# - bin/uniworxdb
# TODO: part of backend build; probably deprecated
# TODO: rewrite # TODO: rewrite
uniworx:exe:uniworxload: # uniworx:exe:uniworxload:
stage: build # stage: build
script: # script:
- xzcat uniworx:lib:uniworx.nar.xz | nix-store --import # - xzcat uniworx:lib:uniworx.nar.xz | nix-store --import
- nix -L build -o result ".#uniworx:exe:uniworxload" # - nix -L build -o result ".#uniworx:exe:uniworxload"
- nix-store --export $(nix-store -qR result) | xz -T0 -2 > uniworx:exe:uniworxload.nar.xz # - nix-store --export $(nix-store -qR result) | xz -T0 -2 > uniworx:exe:uniworxload.nar.xz
needs: # needs:
- job: frontend dependencies # transitive # - job: frontend dependencies # transitive
artifacts: false # artifacts: false
- job: frontend build # transitive # - job: frontend build # transitive
artifacts: false # artifacts: false
artifacts: # artifacts:
paths: # paths:
- uniworx:exe:uniworxload.nar.xz # - uniworx:exe:uniworxload.nar.xz
frontend lint: frontend lint:
stage: lint stage: lint
@ -184,7 +186,7 @@ backend lint:
needs: needs:
- job: backend dependencies - job: backend dependencies
artifacts: true artifacts: true
- job: uniworx - job: backend build
artifacts: true artifacts: true
frontend test: frontend test:
@ -205,7 +207,7 @@ backend test:
needs: needs:
- job: backend dependencies - job: backend dependencies
artifacts: true artifacts: true
- job: uniworx - job: backend build
artifacts: true artifacts: true
# TODO: configure report artifacts # TODO: configure report artifacts