.github: Pin NIX_PATH before nix-shell invocation
This commit is contained in:
parent
ef2b5b53a8
commit
f0f1be46c3
1 changed files with 3 additions and 0 deletions
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue