summaryrefslogtreecommitdiff
path: root/.github/workflows/nix.yaml
blob: ab0987c9922bfd8ceb85f2ae5f59a8b915a92e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Nix

on:
  push:
    branches: [main]
  pull_request:
  workflow_dispatch:

jobs:
  check:
    name: Check flake

    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Install Nix
        uses: DeterminateSystems/nix-installer-action@v10

      - name: Setup Nix cache
        uses: DeterminateSystems/magic-nix-cache-action@v4

      - name: Run nix flake check
        run: |
          nix flake check \
            --all-systems \
            --fallback \
            --print-build-logs \
            --show-trace