From e46eb0b82ce5670b2c35d22785ca31ddc804ff5d Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Wed, 24 May 2023 09:46:04 -0700 Subject: [PATCH 1/3] v0.9.0 - nix profile location change --- action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/action.yml b/action.yml index 9afe5b5..7d3889c 100644 --- a/action.yml +++ b/action.yml @@ -119,6 +119,7 @@ runs: fi echo "Nix was already installed, using existing install" echo "/nix/var/nix/profiles/default/bin" >> $GITHUB_PATH + echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH exit 0 fi fi From 10f7447de7a452330bb96887013f64b1c5f58994 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Thu, 25 May 2023 08:53:32 -0700 Subject: [PATCH 2/3] Use ripgrep instead of fortune --- .github/workflows/ci.yml | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89d3d42..e68590c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,11 +22,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#fortune - nix profile install nixpkgs#fortune - fortune + nix run nixpkgs#ripgrep + nix profile install nixpkgs#ripgrep + ripgrep nix store gc - nix run nixpkgs#fortune + nix run nixpkgs#ripgrep - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -44,11 +44,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#fortune - nix profile install nixpkgs#fortune - fortune + nix run nixpkgs#ripgrep + nix profile install nixpkgs#ripgrep + ripgrep nix store gc - nix run nixpkgs#fortune + nix run nixpkgs#ripgrep - name: Reinstall Nix uses: ./ with: @@ -61,11 +61,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#fortune - nix profile install nixpkgs#fortune - fortune + nix run nixpkgs#ripgrep + nix profile install nixpkgs#ripgrep + ripgrep nix store gc - nix run nixpkgs#fortune + nix run nixpkgs#ripgrep - name: Verify the generated nix.conf run: | cat -n /etc/nix/nix.conf @@ -88,11 +88,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#fortune - nix profile install nixpkgs#fortune - fortune + nix run nixpkgs#ripgrep + nix profile install nixpkgs#ripgrep + ripgrep nix store gc - nix run nixpkgs#fortune + nix run nixpkgs#ripgrep - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -114,11 +114,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#fortune - nix profile install nixpkgs#fortune - fortune + nix run nixpkgs#ripgrep + nix profile install nixpkgs#ripgrep + ripgrep nix store gc - nix run nixpkgs#fortune + nix run nixpkgs#ripgrep - name: Reinstall Nix uses: ./ with: @@ -131,11 +131,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#fortune - nix profile install nixpkgs#fortune - fortune + nix run nixpkgs#ripgrep + nix profile install nixpkgs#ripgrep + ripgrep nix store gc - nix run nixpkgs#fortune + nix run nixpkgs#ripgrep - name: Verify the generated nix.conf run: | cat -n /etc/nix/nix.conf From cd77c17f5935e92e371e2370cdbcbbb6b88254bb Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Thu, 25 May 2023 08:54:25 -0700 Subject: [PATCH 3/3] Maybe we can use hello --- .github/workflows/ci.yml | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e68590c..390b962 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,11 +22,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#ripgrep - nix profile install nixpkgs#ripgrep - ripgrep + nix run nixpkgs#hello + nix profile install nixpkgs#hello + hello nix store gc - nix run nixpkgs#ripgrep + nix run nixpkgs#hello - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -44,11 +44,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#ripgrep - nix profile install nixpkgs#ripgrep - ripgrep + nix run nixpkgs#hello + nix profile install nixpkgs#hello + hello nix store gc - nix run nixpkgs#ripgrep + nix run nixpkgs#hello - name: Reinstall Nix uses: ./ with: @@ -61,11 +61,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#ripgrep - nix profile install nixpkgs#ripgrep - ripgrep + nix run nixpkgs#hello + nix profile install nixpkgs#hello + hello nix store gc - nix run nixpkgs#ripgrep + nix run nixpkgs#hello - name: Verify the generated nix.conf run: | cat -n /etc/nix/nix.conf @@ -88,11 +88,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#ripgrep - nix profile install nixpkgs#ripgrep - ripgrep + nix run nixpkgs#hello + nix profile install nixpkgs#hello + hello nix store gc - nix run nixpkgs#ripgrep + nix run nixpkgs#hello - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -114,11 +114,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#ripgrep - nix profile install nixpkgs#ripgrep - ripgrep + nix run nixpkgs#hello + nix profile install nixpkgs#hello + hello nix store gc - nix run nixpkgs#ripgrep + nix run nixpkgs#hello - name: Reinstall Nix uses: ./ with: @@ -131,11 +131,11 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#ripgrep - nix profile install nixpkgs#ripgrep - ripgrep + nix run nixpkgs#hello + nix profile install nixpkgs#hello + hello nix store gc - nix run nixpkgs#ripgrep + nix run nixpkgs#hello - name: Verify the generated nix.conf run: | cat -n /etc/nix/nix.conf