Merge pull request #22 from DeterminateSystems/v0.9.0-changes

v0.9.0 - nix profile location change
This commit is contained in:
Ana Hobden 2023-05-25 09:57:30 -07:00 committed by GitHub
commit 129f079024
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 24 deletions

View file

@ -22,11 +22,11 @@ jobs:
- name: Test `nix` with `$GITHUB_PATH` - name: Test `nix` with `$GITHUB_PATH`
if: success() || failure() if: success() || failure()
run: | run: |
nix run nixpkgs#fortune nix run nixpkgs#hello
nix profile install nixpkgs#fortune nix profile install nixpkgs#hello
fortune hello
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#hello
- name: Test bash - name: Test bash
run: nix-instantiate -E 'builtins.currentTime' --eval run: nix-instantiate -E 'builtins.currentTime' --eval
if: success() || failure() if: success() || failure()
@ -44,11 +44,11 @@ jobs:
- name: Test `nix` with `$GITHUB_PATH` - name: Test `nix` with `$GITHUB_PATH`
if: success() || failure() if: success() || failure()
run: | run: |
nix run nixpkgs#fortune nix run nixpkgs#hello
nix profile install nixpkgs#fortune nix profile install nixpkgs#hello
fortune hello
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#hello
- name: Reinstall Nix - name: Reinstall Nix
uses: ./ uses: ./
with: with:
@ -61,11 +61,11 @@ jobs:
- name: Test `nix` with `$GITHUB_PATH` - name: Test `nix` with `$GITHUB_PATH`
if: success() || failure() if: success() || failure()
run: | run: |
nix run nixpkgs#fortune nix run nixpkgs#hello
nix profile install nixpkgs#fortune nix profile install nixpkgs#hello
fortune hello
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#hello
- name: Verify the generated nix.conf - name: Verify the generated nix.conf
run: | run: |
cat -n /etc/nix/nix.conf cat -n /etc/nix/nix.conf
@ -88,11 +88,11 @@ jobs:
- name: Test `nix` with `$GITHUB_PATH` - name: Test `nix` with `$GITHUB_PATH`
if: success() || failure() if: success() || failure()
run: | run: |
nix run nixpkgs#fortune nix run nixpkgs#hello
nix profile install nixpkgs#fortune nix profile install nixpkgs#hello
fortune hello
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#hello
- name: Test bash - name: Test bash
run: nix-instantiate -E 'builtins.currentTime' --eval run: nix-instantiate -E 'builtins.currentTime' --eval
if: success() || failure() if: success() || failure()
@ -114,11 +114,11 @@ jobs:
- name: Test `nix` with `$GITHUB_PATH` - name: Test `nix` with `$GITHUB_PATH`
if: success() || failure() if: success() || failure()
run: | run: |
nix run nixpkgs#fortune nix run nixpkgs#hello
nix profile install nixpkgs#fortune nix profile install nixpkgs#hello
fortune hello
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#hello
- name: Reinstall Nix - name: Reinstall Nix
uses: ./ uses: ./
with: with:
@ -131,11 +131,11 @@ jobs:
- name: Test `nix` with `$GITHUB_PATH` - name: Test `nix` with `$GITHUB_PATH`
if: success() || failure() if: success() || failure()
run: | run: |
nix run nixpkgs#fortune nix run nixpkgs#hello
nix profile install nixpkgs#fortune nix profile install nixpkgs#hello
fortune hello
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#hello
- name: Verify the generated nix.conf - name: Verify the generated nix.conf
run: | run: |
cat -n /etc/nix/nix.conf cat -n /etc/nix/nix.conf

View file

@ -119,6 +119,7 @@ runs:
fi fi
echo "Nix was already installed, using existing install" echo "Nix was already installed, using existing install"
echo "/nix/var/nix/profiles/default/bin" >> $GITHUB_PATH echo "/nix/var/nix/profiles/default/bin" >> $GITHUB_PATH
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
exit 0 exit 0
fi fi
fi fi