summaryrefslogtreecommitdiff
path: root/.github/workflows/nix-flake.yml
blob: 78296fe9528fcd7bd8f1a0a38be38634ee6c2a3d (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@V27
      with:
        nix_path: nixpkgs=channel:nixos-unstable

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