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

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