[CI] experimental nix copy --to/from /tmp/nix-cache

parent 83b06af8
...@@ -35,31 +35,41 @@ compile: ...@@ -35,31 +35,41 @@ compile:
stage: compile stage: compile
cache: cache:
paths: paths:
- /nix/store - /tmp/nix-cache
#- /nix/store
#- node_modules/ #- node_modules/
- output/ - output/
#- .spago/ #- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb #- ${CI_PROJECT_DIR}/bun.lockb
script: script:
# restore old cache
- nix copy --from 'file:///tmp/nix-cache'
- nix --extra-experimental-features "nix-command flakes" run .#fix-bun - nix --extra-experimental-features "nix-command flakes" run .#fix-bun
#- nix-shell shell.nix --run fix-bun #- nix-shell shell.nix --run fix-bun
- nix --extra-experimental-features "nix-command flakes" run .#compile - nix --extra-experimental-features "nix-command flakes" run .#compile
#- nix-shell shell.nix --run compile #- nix-shell shell.nix --run compile
# store cache
- nix copy --to 'file:///tmp/nix-cache' .#build
test: test:
stage: test stage: test
cache: cache:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /nix/store - /tmp/nix-cache
#- /nix/store
#- node_modules/ #- node_modules/
- output/ - output/
#- .spago/ #- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb #- ${CI_PROJECT_DIR}/bun.lockb
script: script:
# restore old cache
- nix copy --from 'file:///tmp/nix-cache'
- nix --extra-experimental-features "nix-command flakes" run .#fix-bun - nix --extra-experimental-features "nix-command flakes" run .#fix-bun
#- nix-shell shell.nix --run fix-bun #- nix-shell shell.nix --run fix-bun
- nix --extra-experimental-features "nix-command flakes" run .#test-ps - nix --extra-experimental-features "nix-command flakes" run .#test-ps
#- nix-shell shell.nix --run test-ps #- nix-shell shell.nix --run test-ps
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