From 9f9899c31a4a2872599a14f72c7b8cc83858040c Mon Sep 17 00:00:00 2001 From: "Travis A. Everett" Date: Fri, 24 May 2024 12:31:52 -0500 Subject: [PATCH] ci: use legacy nix commands Same semantic change as ffb5c85ee --- .github/workflows/ci.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e2150656..9ecb0dd27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,11 +115,12 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#hello - nix profile install nixpkgs#hello + nix-channel --update nixpkgs + nix-shell -p hello --command hello + nix-env --install hello hello - nix store gc - nix run nixpkgs#hello + nix-store --gc + nix-shell -p hello --command hello - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -229,11 +230,12 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - sudo -i nix run nixpkgs#hello - sudo -i nix profile install nixpkgs#hello - hello - sudo -i nix store gc - sudo -i nix run nixpkgs#hello + sudo -i nix-channel --update nixpkgs + sudo -i nix-shell -p hello --command hello + sudo -i nix-env --install hello + sudo -i hello + sudo -i nix-store --gc + sudo -i nix-shell -p hello --command hello - name: Test bash run: sudo -i nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure() @@ -326,11 +328,12 @@ jobs: - name: Test `nix` with `$GITHUB_PATH` if: success() || failure() run: | - nix run nixpkgs#hello - nix profile install nixpkgs#hello + nix-channel --update nixpkgs + nix-shell -p hello --command hello + nix-env --install hello hello - nix store gc - nix run nixpkgs#hello + nix-store --gc + nix-shell -p hello --command hello - name: Test bash run: nix-instantiate -E 'builtins.currentTime' --eval if: success() || failure()