summaryrefslogtreecommitdiff
path: root/.github/workflows/nix-flake.yml
blob: 757b022f901b4f7207132e02ea72c50e80acc6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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@v24
      with:
        nix_path: nixpkgs=channel:nixos-unstable

    - uses: actions/checkout@v4
    - name: Ensure nix flake builds
      run: "nix build ."