.github: Pin NIX_PATH before nix-shell invocation

This commit is contained in:
Zhaofeng Li 2022-01-01 16:41:35 -08:00
parent ef2b5b53a8
commit f0f1be46c3

View file

@ -74,6 +74,9 @@ jobs:
name: colmena name: colmena
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Set up pinned nixpkgs
run: echo "NIX_PATH=nixpkgs=$(nix-instantiate --eval flake-compat.nix -A defaultNix.inputs.nixpkgs.outPath | sed 's|\"||g')" >> $GITHUB_ENV
- run: nix-shell --run "cargo test" - run: nix-shell --run "cargo test"
if: ${{ !contains(matrix.nix.name, '2.3') }} if: ${{ !contains(matrix.nix.name, '2.3') }}
- run: nix-shell --run "cargo test -- --skip flake" - run: nix-shell --run "cargo test -- --skip flake"