summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSteve Purcell <steve@sanityinc.com>2023-03-20 11:40:01 +0100
committerMartin Michlmayr <tbm@cyrius.com>2023-03-21 09:59:28 +0800
commitc82646b568a3c312ccb2f0f5526a3167717004a5 (patch)
tree0930deecbb5efee7085eaf15a3d0f8bfa88babd1 /.github
parent99816afefaf8c37a7f0d4d50217cc4cbe978e224 (diff)
downloadfork-ledger-c82646b568a3c312ccb2f0f5526a3167717004a5.tar.gz
fork-ledger-c82646b568a3c312ccb2f0f5526a3167717004a5.tar.bz2
fork-ledger-c82646b568a3c312ccb2f0f5526a3167717004a5.zip
Build the Nix flake in CI
Diffstat (limited to '.github')
-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 ."