From f616baa7b2fa9770319fa041a81d84c5fdb9930c Mon Sep 17 00:00:00 2001 From: xeals Date: Thu, 11 Nov 2021 22:15:41 +1100 Subject: [PATCH] ci: merge workflow changes from upstream --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7ccf731..add9aaf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,8 @@ jobs: uses: cachix/install-nix-action@v14 with: nix_path: "${{ matrix.nixPath }}" + extra_nix_config: | + experimental-features = nix-command flakes - name: Show nixpkgs version run: nix-instantiate --eval -E '(import {}).lib.version' - name: Setup cachix @@ -50,8 +52,7 @@ jobs: name: ${{ matrix.cachixName }} signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' - name: Build nix packages - # TODO switch to default nixpkgs channel once nix-build-uncached 1.0.0 is in stable - run: nix run -I 'nixpkgs=channel:nixos-unstable' nixpkgs.nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs + run: nix shell -f '' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs - name: Trigger NUR update if: ${{ matrix.nurRepo != '' }} run: curl -XPOST "https://nur-update.herokuapp.com/update?repo=${{ matrix.nurRepo }}"