diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac45ab01..ba2b34b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,6 +19,7 @@ jobs: nix_path: nixpkgs=channel:nixos-20.03 - run: nix-env -iA cachix -f https://cachix.org/api/v1/install - run: cat /etc/nix/nix.conf + - run: ls -la ~/.nix-profile/bin # cachix should be available and be able to configure a cache - run: cachix use cachix - run: nix-build test.nix diff --git a/install-nix.sh b/install-nix.sh index b2d254fe..fbe0d151 100755 --- a/install-nix.sh +++ b/install-nix.sh @@ -87,6 +87,8 @@ fi # Set paths echo "/nix/var/nix/profiles/default/bin" >> "$GITHUB_PATH" echo "/nix/var/nix/profiles/per-user/$USER/profile/bin" >> "$GITHUB_PATH" +# new path for nix 2.14 +echo "$HOME/.nix-profile/bin" >> "$GITHUB_PATH" if [[ $INPUT_NIX_PATH != "" ]]; then echo "NIX_PATH=${INPUT_NIX_PATH}" >> "$GITHUB_ENV"