-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.04 KB
/
check.yaml
File metadata and controls
50 lines (42 loc) · 1.04 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Validate Nix Flake
on:
workflow_dispatch:
workflow_call:
inputs:
ref:
required: false
type: string
push:
paths:
- "**.nix"
- "**.lock"
- ".github/workflows/check.yaml"
- ".github/actions/**/*"
permissions: {}
jobs:
check-flake:
name: Check (${{ matrix.system }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
system: x86_64-linux
- os: macos-latest
system: aarch64-darwin
steps:
- name: Checkout
uses: actions/checkout@v6
with:
ref: ${{ inputs.ref && inputs.ref || github.ref_name }}
persist-credentials: false
submodules: recursive
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v17
with:
name: kidibox
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Check Flake
run: nix flake check