From 109521822217ac6d04acbb5efdcceee16e816417 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 5 Jan 2020 06:16:37 +0000 Subject: [PATCH] GitHub Actions: Nix environment --- .github/workflows/ubuntu.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 57aceef..923a16f 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -22,7 +22,12 @@ jobs: - uses: actions/checkout@v1 - name: Install Nix - run: curl https://nixos.org/nix/install | sh + run: | + curl https://nixos.org/nix/install | sh + . ~/.nix-profile/etc/profile.d/nix.sh + nix-channel --update - name: Build - run: sudo make nix # root required for Nix build sandbox + run: | + . ~/.nix-profile/etc/profile.d/nix.sh + make nix