From c82646b568a3c312ccb2f0f5526a3167717004a5 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 20 Mar 2023 11:40:01 +0100 Subject: Build the Nix flake in CI --- .github/workflows/nix-flake.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/nix-flake.yml (limited to '.github') diff --git a/.github/workflows/nix-flake.yml b/.github/workflows/nix-flake.yml new file mode 100644 index 00000000..eab3400e --- /dev/null +++ b/.github/workflows/nix-flake.yml @@ -0,0 +1,22 @@ +name: "Nix Flake" +on: + push: + branches: master + pull_request: + branches: master + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + + steps: + - uses: cachix/install-nix-action@v20 + with: + nix_path: nixpkgs=channel:nixos-unstable + + - uses: actions/checkout@v3 + - name: Ensure nix flake builds + run: "nix build ." -- cgit v1.2.3