-
Notifications
You must be signed in to change notification settings - Fork 2
30 lines (30 loc) · 923 Bytes
/
Copy pathflake-check.yml
File metadata and controls
30 lines (30 loc) · 923 Bytes
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
name: Nix Flake Check
on:
push:
branches:
- main
- claude/**
pull_request:
jobs:
flake-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
experimental-features = nix-command flakes pipe-operators
- name: Nix store cache
uses: nix-community/cache-nix-action@v7
with:
primary-key: nix-${{ runner.os }}-flake-check-${{ hashFiles('flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-flake-check-
gc-max-store-size-linux: 2G
purge: true
purge-prefixes: nix-${{ runner.os }}-flake-check-
purge-created: 0
purge-primary-key: never
- name: Check flake
run: nix flake check --all-systems --show-trace