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

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