[CI] cache /nix/store with collect garbage

parent 0d95db48
...@@ -35,25 +35,15 @@ compile: ...@@ -35,25 +35,15 @@ compile:
stage: compile stage: compile
cache: cache:
paths: paths:
# - /tmp/nix-cache - /nix/store
#- /nix/store
#- node_modules/ #- node_modules/
- output/ - output/
#- .spago/ #- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb #- ${CI_PROJECT_DIR}/bun.lockb
# before_script:
# # restore old cache
# - nix --extra-experimental-features "nix-command flakes" copy --from 'file:///tmp/nix-cache' || exit_code=$?
script: script:
- 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 --extra-experimental-features "nix-command flakes" run .#compile - nix --extra-experimental-features "nix-command flakes" run .#compile
#- nix-shell shell.nix --run compile
# after_script:
# # store cache
# - nix --extra-experimental-features "nix-command flakes" copy --to 'file:///tmp/nix-cache' .#build
test: test:
stage: test stage: test
...@@ -61,18 +51,14 @@ test: ...@@ -61,18 +51,14 @@ test:
# cache per branch name # cache per branch name
# key: ${CI_COMMIT_REF_SLUG} # key: ${CI_COMMIT_REF_SLUG}
paths: paths:
# - /tmp/nix-cache - /nix/store
#- /nix/store
#- node_modules/ #- node_modules/
- output/ - output/
#- .spago/ #- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb #- ${CI_PROJECT_DIR}/bun.lockb
# before_script:
# # restore old cache
# - nix --extra-experimental-features "nix-command flakes" copy --from 'file:///tmp/nix-cache' || exit_code=$?
script: script:
- 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 --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-collect-garbage
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