summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/nix-flake.yml22
1 files changed, 22 insertions, 0 deletions
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 ."