Skip to content

Commit

Permalink
add nix profile to PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
garbas committed Nov 30, 2020
1 parent 053ef7b commit 84756cc
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cron.yml
Expand Up @@ -26,8 +26,10 @@ jobs:
run: |
nix-env -iA nixpkgs.nixFlakes
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
$HOME/.nix-profile/bin/nix --version
nix --version
cat /etc/nix/nix.conf
PATH="$HOME/.nix-profile/bin:$PATH"
echo "PATH=${PATH}" >> $GITHUB_ENV
- uses: cachix/cachix-action@v8
with:
Expand All @@ -39,7 +41,7 @@ jobs:

- name: Building nixos.org
run: |
$HOME/.nix-profile/bin/nix build
nix build
mkdir build
cp -RL ./result/* ./build/
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/master.yml
Expand Up @@ -27,8 +27,10 @@ jobs:
run: |
nix-env -iA nixpkgs.nixFlakes
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
$HOME/.nix-profile/bin/nix --version
nix --version
cat /etc/nix/nix.conf
PATH="$HOME/.nix-profile/bin:$PATH"
echo "PATH=${PATH}" >> $GITHUB_ENV
- uses: cachix/cachix-action@v8
with:
Expand All @@ -37,7 +39,7 @@ jobs:

- name: Building nixos.org
run: |
$HOME/.nix-profile/bin/nix build
nix build
mkdir build
cp -RL ./result/* ./build/
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pulls.yml
Expand Up @@ -23,8 +23,10 @@ jobs:
run: |
nix-env -iA nixpkgs.nixFlakes
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
$HOME/.nix-profile/bin/nix --version
nix --version
cat /etc/nix/nix.conf
PATH="$HOME/.nix-profile/bin:$PATH"
echo "PATH=${PATH}" >> $GITHUB_ENV
- uses: cachix/cachix-action@v8
with:
Expand All @@ -33,7 +35,7 @@ jobs:

- name: Building nixos.org
run: |
$HOME/.nix-profile/bin/nix build
nix build
mkdir build
cp -RL ./result/* ./build/
Expand Down

0 comments on commit 84756cc

Please sign in to comment.