[CI] compile, output caching

parent c9b0d426
...@@ -15,7 +15,7 @@ variables: ...@@ -15,7 +15,7 @@ variables:
stages: stages:
- deps - deps
- build - compile
- test - test
deps: deps:
...@@ -23,24 +23,23 @@ deps: ...@@ -23,24 +23,23 @@ deps:
cache: cache:
paths: paths:
- /nix/store - /nix/store
- ${HOME}/.bun/install/cache
- node_modules/ - node_modules/
#- ${CI_PROJECT_DIR}/bun.lockb #- ${CI_PROJECT_DIR}/bun.lockb
script: script:
- nix-shell shell.nix --run 'bun install --skip-builds' - nix-shell shell.nix --run 'bun install --skip-builds'
build: compile:
stage: build stage: compile
cache: cache:
paths: paths:
- /nix/store - /nix/store
- ${HOME}/.bun/install/cache
- node_modules/ - node_modules/
- output/
- .spago/ - .spago/
#- ${CI_PROJECT_DIR}/bun.lockb #- ${CI_PROJECT_DIR}/bun.lockb
script: script:
- nix-shell shell.nix --run fix-bun - nix-shell shell.nix --run fix-bun
- nix-shell shell.nix --run build - nix-shell shell.nix --run compile
test: test:
stage: test stage: test
...@@ -49,8 +48,8 @@ test: ...@@ -49,8 +48,8 @@ test:
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix/store - /nix/store
- ${HOME}/.bun/install/cache
- node_modules/ - node_modules/
- output/
- .spago/ - .spago/
#- ${CI_PROJECT_DIR}/bun.lockb #- ${CI_PROJECT_DIR}/bun.lockb
script: script:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment