[CI] before/after scripts for cache, allow them to fail

parent 0bd03143
Pipeline #6065 canceled with stages
in 4 minutes and 54 seconds
......@@ -41,15 +41,17 @@ compile:
- output/
#- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb
script:
before_script:
# restore old cache
- nix --extra-experimental-features "nix-command flakes" copy --from 'file:///tmp/nix-cache'
- nix --extra-experimental-features "nix-command flakes" copy --from 'file:///tmp/nix-cache' || exit_code=$?
script:
- 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-shell shell.nix --run compile
after_script:
# store cache
- nix --extra-experimental-features "nix-command flakes" copy --to 'file:///tmp/nix-cache' .#build
......@@ -65,10 +67,11 @@ test:
- output/
#- .spago/
#- ${CI_PROJECT_DIR}/bun.lockb
script:
before_script:
# restore old cache
- nix --extra-experimental-features "nix-command flakes" copy --from 'file:///tmp/nix-cache'
- nix --extra-experimental-features "nix-command flakes" copy --from 'file:///tmp/nix-cache' || exit_code=$?
script:
- 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
......
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