From 24b9c45b2f84db0c6454f740b3f7da3c10be09b0 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sat, 18 Sep 2021 18:58:30 +0300 Subject: [PATCH] ci(actions): Test Nix functionality --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4651140839..a76fbd5a91 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,3 +57,24 @@ jobs: sile-${{ env.VERSION }}.pdf sile-${{ env.VERSION }}.zip sile-${{ env.VERSION }}.tar.xz + + nix-flake: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Install Nix + uses: cachix/install-nix-action@v14 + with: + nix_path: nixpkgs=channel:nixos-unstable + extra_nix_config: | + experimental-features = nix-command flakes + - name: Check nix flake + run: | + nix flake check + - name: Check nix + run: | + nix shell -c true