on master help sign in
Try exporting the variables in the main step?
commit8886b5561e1f13d32ad9b25522d2a18f5f7ec4c5 authorguillaume <guillaume@repl.it> dateMon 28 Jun 2021, 14:32 (5 years ago) parent68097cb
1 file changed+8−6
.circleci/config.yml+8−6
.circleci/config.yml+8−6
@@ -21,14 +21,16 @@ jobs:
2121 - checkout
2222 - restore_cache:
2323 key: nix-store
24+ # Skip the julia tests since they break in CI due to permission errors
2425 - run:
25− name: Setup Environment Variables
26+ name: Run nix-build with env vars
2627 command: |
27− echo "export NIX_STORE_DIR=$HOME/nix/store" >> $BASH_ENV
28− echo "export NIX_STATE_DIR=$HOME/nix/var/nix" >> $BASH_ENV
29− echo "export NIX_LOG_DIR=$HOME/nix/var/log/nix" >> $BASH_ENV
30− # Skip the julia tests since they break in CI due to permission errors
31− - run: echo $NIX_STORE_DIR && mv ./tests/julia ./tests/julia_skip && nix-build
28+ export NIX_STORE_DIR=$HOME/nix/store
29+ export NIX_STATE_DIR=$HOME/nix/var/nix
30+ export NIX_LOG_DIR=$HOME/nix/var/log/nix
31+ echo $NIX_STORE_DIR
32+ mv ./tests/julia ./tests/julia_skip
33+ nix-build
3234 - save_cache:
3335 key: nix-store
3436 when: always